Replies: 1 comment 1 reply
-
authors can take advantage of @layer reset, base, ..., vivid.tokens, vivid.tokens.customization; /* the last is provided by authors */ that will only require the vivid custom properties to be wrapped by a layer @layer vivid.tokens {
/* vivid token contained here */
} alternatively, overrides can be injected by authors directly to the @layer reset, base, ..., vivid.tokens; and authors do @layer vivid.tokens {
.vvd-root {
/* overrides... */
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When Vonage authors are using Vivid 3.x some additional imports are needed for using the Spezia font.
Vivid typography tokens need to be override with new tokens using the Spezia font.
We advise the tokens to be set on the vvd-root class.
As tokens are css, they also obey to the cascading and the Spezia tokens may be override by the default ones.
Scenario 1
the tokens are imported to the project in a link in the header
the css of the project (where the Spezia tokens are) added the same as link in the head but comes before vivid-tokens
this can be easily fixed with changing the order of the imports or by giving a higher specification in the css file (e.g.
:root .vvd-root {tokens}
)Scenario 2
tokens are imported inside css file (or scss)
In this scenario the import need to be at the top of the file - so there will not be un-needed override.
However we can recommend the authors to assign the tokens to a layer to set it as a lower specificity.
Question raised:
Beta Was this translation helpful? Give feedback.
All reactions