Skip to content

Guidelines for modifying theme #311

Discussion options

You must be logged in to vote

Hey @LanceALaughlin, there are 2 places that need to be updated for modifying colors.

  1. The ~/global.css file:
    Here live the css variables used by the tailwind classNames. For example, updating the background values with update everywhere that uses *-background like bg-background.
  2. The ~/lib/constants.ts file:
    Here live the javascript variables used for the Navigation Theme. The css variable name is commented beside each value. To keep both in sync, when changing a variable in the ~/global.css file, you will need to update the value with the same commented out variable name in the ~/lib/constants.ts file. For example, if you update the destructive variable in ~/global.css, then you will nee…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LanceALaughlin
Comment options

Answer selected by LanceALaughlin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants