https://github.com/fallaciousreasoning/brave-material-base
https://github.com/fallaciousreasoning/brave-material-base
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/fallaciousreasoning/brave-material-base
- Owner: fallaciousreasoning
- Created: 2024-08-29T23:52:31.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-10-03T02:58:34.000Z (over 1 year ago)
- Last Synced: 2025-01-22T10:17:15.603Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://brave-material-base.vercel.app
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# README
https://brave-material-base.vercel.app/
This tool generates a baseline Material theme for Brave-Core. This is slightly
complicated by the fact that the Nala and Chromium baseline colors don't
perfectly overlap.
The basic algorithm is this:
1. Get all the Nala variables
2. Get all the Chromium variables
3. Generate a palette based on the Nala base color (can be changed in the input)
Include all the Nala hardcoded colors - some of these have been tweaked by
@aguscruiz by hand, so we don't want to override them with the generated
palette.
For each remaining Chromium color, override it with the generated palette color.
## Sources
Nala colors are extracted from https://nala.bravesoftware.com/css/variables.css
Chromium colors are extracts from https://raw.githubusercontent.com/brave/chromium/main/ui/color/color_id.h