Commit Graph

18 Commits

Author SHA1 Message Date
Elizabeth Mitchell
5e40a1bcec chore: create shape logical tokens in Sass component token files
Adds `@material/web/tokens/internal/shape` to take a shape token and create 4 logical tokens from its value.

All components' logical shape tokens are now generated by the token files themselves, rather than added in each component's styles.

PiperOrigin-RevId: 601783846
2024-01-26 09:13:58 -08:00
Elizabeth Mitchell
feff7214a7 feat(tokens): add component custom properties to Sass values
These are excluded by default, but will be enabled by default in 2.0.

Example: `tokens.md-comp-checkbox-values($exclude-custom-properties: false)`
PiperOrigin-RevId: 601596085
2024-01-25 16:10:32 -08:00
Elizabeth Mitchell
a3a05e4179 chore(tokens): rename tokens/internal/values tokens/internal/validate
The naming is a bit backwards. The file is about validation and the function is for the token values, not a file just for token values.

PiperOrigin-RevId: 599207580
2024-01-17 09:59:53 -08:00
Elizabeth Mitchell
b986b1eb7c fix(tokens): moved '_values.scss' to 'internal/_values.scss'
Why? To help clarify that this isn't intended to be a public API, and to better organize future internal-only token files.

PiperOrigin-RevId: 599203361
2024-01-17 09:45:26 -08:00
Elizabeth Mitchell
035d155366 chore: remove todos for un-actionable spacing tokens bug
PiperOrigin-RevId: 594158700
2023-12-27 21:13:43 -08:00
Elizabeth Mitchell
cfd053c397 fix(tokens): update components to v0.192
PiperOrigin-RevId: 565714251
2023-09-15 10:27:07 -07:00
Elizabeth Mitchell
8894c20c6b fix(button): remove font shorthand tokens
BREAKING CHANGE: replace `label-text-type` tokens with `label-text-font`, `-size`, `-line-height`, and `-weight`

PiperOrigin-RevId: 563153211
2023-09-06 10:56:22 -07:00
Elizabeth Mitchell
2329d2b419 fix(button)!: rename spacing tokens
BREAKING CHANGE: Rename `--md-<button>-spacing-<token>` to `--md-<button>-<token>-space`. Rename `--md-<button>-with-icon-*` to `--md-<button>-with-leading-icon-*`.

PiperOrigin-RevId: 552323014
2023-07-30 17:18:48 -07:00
Andrew Jakubowicz
25be982568 fix(button)!: remove with-* prefix from tokens
PiperOrigin-RevId: 546883625
2023-07-10 08:44:40 -07:00
Elizabeth Mitchell
933fc2e013 fix(all): remove focus state layer tokens
BREAKING CHANGE: Remove any *-focus-state-layer-* custom properties (they don't do anything)

PiperOrigin-RevId: 535302944
2023-05-25 10:33:20 -07:00
Elizabeth Mitchell
969cd24539 chore(button): remove shape resolver
PiperOrigin-RevId: 527359555
2023-04-26 13:30:49 -07:00
Daniel Freedman
1bc73d2e48 feat(all): use system typography tokens in components
PiperOrigin-RevId: 522723617
2023-04-07 17:45:59 -07:00
Elizabeth Mitchell
50157e61a7 fix(button): tonal surface update
PiperOrigin-RevId: 522243314
2023-04-05 21:58:36 -07:00
Elizabeth Mitchell
3934f51e1d chore(tokens): update default to v0.172
PiperOrigin-RevId: 522134400
2023-04-05 13:12:02 -07:00
Elizabeth Mitchell
e33422ac2a chore(tokens): add supported token lists for cleaner documentation
PiperOrigin-RevId: 518893012
2023-03-23 10:10:00 -07:00
Elizabeth Mitchell
eed1abd8ea chore(button): remove resolvers
PiperOrigin-RevId: 518375891
2023-03-21 14:06:33 -07:00
Elizabeth Mitchell
789d23bd61 chore(sass): remove typography resolvers
PiperOrigin-RevId: 518054505
2023-03-20 13:09:04 -07:00
Elizabeth Mitchell
2623c1dd4e fix(tokens): add override files for all tokens
PiperOrigin-RevId: 518049463
2023-03-20 12:50:02 -07:00