Textual Color Theming: Ayu Theme #1407
mitosch
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
NOTE: Theming is currently not officially supported according to the documentation. This may be subject of change in the future and is an in-official method for changing the theme / base colors.
This example shows, how you can apply or change the base colors of textual and re-use those in CSS (
$primary
,$secondary
, etc.).To change the colors, the
DEFAULT_COLORS
has to be overwritten:Running the textual demo with the Ayu dark and light theme:
The comments behind the colors refer to the Ayu Colors SVG
Result:
Dark:
Light:
PS: There is also a possibility without overwriting
DEFAULT_COLORS
and change it during runtime (with a small side-effect of flickering sometimes):Beta Was this translation helpful? Give feedback.
All reactions