mirror of
https://github.com/oxalorg/sakura.git
synced 2026-04-03 00:08:52 -06:00
Use unique names for theme colors #40
Labels
No labels
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
dependencies
discussion
discussion
discussion
discussion
discussion
discussion
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
enhancement
good-first-issue
help wanted
help wanted
javascript
javascript
javascript
question
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/sakura#40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @spenserblack on 7/19/2022
Bootstrap collects theme colors together using a map, but the variables themselves can have identities that are different from their map keys.
e5643aaa89/scss/_variables.scss (L77-L87)The folder structure could look like this:
Where
sakura.scsswould look like this:And
themes/default.scsswould look this:And
themes/[theme-name].scsswould look like this:Why?
By making the variable names for each theme unique, users would be able to import them and do something like this:
I haven't used SCSS too much, though, so perhaps there's another way to import variables without them overriding each other? 🤔