Questions tagged [design-tokens]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
41 views

What are drawbacks of using aura design tokens in lightning web component

Tokens <!--tokens--> <aura:tokens> <aura:token name="testBgColor" value="#e7e7e7"/> </aura:tokens> Aura Wrapper <aura:component description="auraWrapper" implements="...
1
vote
0answers
36 views

Lightning Token not applied in Summer '19 preview org

We have multiple lightning components which use Tokens for CSS styling. We observed that one of the tokens is not being applied in any of the components which is using this token. Instead another ...
7
votes
1answer
654 views

Design tokens doesn't work in LWC?

I'm trying to use Lightning Tokens as described in Developer Guide, but unfortunately, it can't resolve the reference. I tried wrapping LWC component with Aura component it. Using tokens works in ...
3
votes
1answer
57 views

What is the use of being able to override tokens in lightning?

According to documentation one can override tokens. From my point of view it is very bad to do this. 1 Because once you override a token in a child token bundle, the value which is specified in ...
3
votes
1answer
266 views

How to access Lightning tokens in bundle other than defaultTokens.tokens

The Lightning [developer guide][1] is not very helpful on how to use Design tokens: Tokens created in the defaultTokens bundle are automatically available in components in your namespace. Ok, ...
1
vote
1answer
285 views

How to change customize theme, background color in Visualforce that using Design system?

I have completed the tutorial applying Design System in Visualforce. I read about design tokens but I still don't understand how we can change the theme in Visualforce. I am not able to find an ...
3
votes
0answers
180 views

Is it possible to pass dynamically created attribute value from Lightning Component Helper to Lightning Tokens?

I would like to pass dynamically created attribute value from Lightning Component Helper to Lightning Tokens, and subsequently use the same in CSS. I'm trying to avoid using JavaScript to set style ...
6
votes
1answer
403 views

Anybody using SLDS Design Tokens in conjunction with React?

The Salesforce Lightning Design System offers a set of Design Tokens that are described as the "visual design atoms of the design system". The Lightning Component framework easily allows you to pull ...
7
votes
2answers
965 views

Accessing Header Image and Other Values From Custom ThemeLayout

I'm creating a custom Theme Layout for Communities. I've created a Lightning Component and I would like to use the customization options available in Community Builder and reference them from within ...
3
votes
0answers
234 views

Removing Design Tokens Dependency in Package

I have a managed package that leverages design tokens in lightning components (and automatically pulls in our defaultTokens.tokens design token bundle as a dependency). I am trying to create an ...