Questions tagged [design-tokens]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
46 views

design token 'is not defined' error in LWC

Trying to utilise standard design tokens within my LWC so that within a community the LWC will adopt the theme colours. I'm unable to successfully reference a global design token. All I get is a '--...
user avatar
  • 1,687
0 votes
0 answers
39 views

Design token to access Logo in LWC which is setup under Login and Registration of Experience Cloud

Is there any design token available to access the logo configured in community administration? Workspace -> Administation -> Login & Registration need to access in registration form build ...
user avatar
2 votes
1 answer
276 views

"No TOKEN named force:base.varFontSize7 found" design token build error started today

We have a LWC that has not changed for months that includes a reference to the $font-size-7 design token: .notes-output__span { min-height: calc(var(--lwc-varFontSize7,1.25rem) + 1px); } and ...
user avatar
  • 130k
0 votes
0 answers
57 views

Aura Design Tokens Don't Work in LWC After Packaging

I'm currently working on a managed package and am using Aura Design Tokens to store color hexes, which are then referenced in LWC .css files. Everything works fine when I'm developing and just pushing ...
user avatar
0 votes
0 answers
68 views

Override Standard Design Tokens to Apply Site-Wide in Community

I have been reviewing Documentation recently and came across Design Tokens. I understand the use of them with Custom Components; however, it is not clear what (if any) functionality is available with ...
user avatar
  • 101
1 vote
1 answer
48 views

BEN notation replacing "--" with "_" affecting Lightning Design Tokens also?

In Spring 21 BEM notations with "--" are being deprecated and should be replaced with "_" (eg "slds-m-right--xx-small" will become "slds-m-right_xx-small"), ...
user avatar
5 votes
1 answer
212 views

Create a pre-built SLDS CSS framework for the Compact Density UI

I've downloaded the Lightning Design System Zip and then used styles/salesforce-lightning-design-system.css (plus the minified version) as part of an external application that is nested within ...
user avatar
3 votes
1 answer
225 views

Lightning Community Design Tokens Stopped Working in Winter 21

Have Lightning Community design token stopped working in Winter 21? We have a defaultTokens bundle with the following code: <aura:tokens extends="force:base"> <aura:token name="...
user avatar
1 vote
3 answers
531 views

Design Token suggested by SLDS Validator extension not working in LWC

I have the below CSS in my Lightning web component. .customBox { height: 30px; min-width: 30px; } As the extension suggested I updated that to the below design tokens. .customBox { ...
user avatar
  • 10.8k
0 votes
1 answer
50 views

Could we use design tokens ("defaultTokens" file) in Visualforce?

Is there any possibility to apply design tokens ("defaultTokens" file) in Visualforce pages so if I change value of some token in "defaultTokens", this changes the style on the ...
user avatar
1 vote
1 answer
159 views

How can we import tokens into defaultTokens so that they are applied for Community?

It is not clear how can we define custom tokens to be used in the community in a different file then defaultTokens.tokens. Looks like that only tokens which values are defined in the defaultTokens....
user avatar
  • 144
2 votes
1 answer
44 views

Does lightning-record-form automatically support Standard Design Tokens for Communities?

This lightning-record-form says that "Lightning Communities" are supported. And communities support Standard Design Tokens for Communities that allow e.g. the color scheme to be varied. Is that ...
user avatar
  • 130k
0 votes
0 answers
174 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="...
user avatar
1 vote
0 answers
46 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 ...
user avatar
  • 731
12 votes
4 answers
6k 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 ...
user avatar
  • 4,157
3 votes
1 answer
148 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 ...
user avatar
5 votes
1 answer
469 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, ...
user avatar
1 vote
1 answer
426 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 ...
user avatar
  • 2,472
4 votes
0 answers
233 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 ...
user avatar
  • 2,225
6 votes
1 answer
503 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 ...
user avatar
  • 962
7 votes
2 answers
2k 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 ...
user avatar
3 votes
0 answers
334 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 ...
user avatar