Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surface levels exported for Web #214

Closed
CarlosEGuerraSilva opened this issue Sep 9, 2023 · 6 comments
Closed

Surface levels exported for Web #214

CarlosEGuerraSilva opened this issue Sep 9, 2023 · 6 comments

Comments

@CarlosEGuerraSilva
Copy link

CarlosEGuerraSilva commented Sep 9, 2023

material-m3-baseline-color-schemes

Currently, surface levels are not exported for web (not present in tokens.css).

material-theme

But they are already generated

Captura de pantalla 2023-09-09 142032

Consider add tokens for surface levels in the tokens.css file, like:

  --md-sys-color-surface-light-1: #EBF3F2;
  --md-sys-color-surface-light-2: #E3EEEE;
  --md-sys-color-surface-light-3: #DCEAEA;
  --md-sys-color-surface-light-4: #D9E9E8;
  --md-sys-color-surface-light-5: #D4E6E6;

  --md-sys-color-surface-dark-1: #131E1E;
  --md-sys-color-surface-dark-2: #152425;
  --md-sys-color-surface-dark-3: #172A2B;
  --md-sys-color-surface-dark-4: #172C2D;
  --md-sys-color-surface-dark-5: #183031;
@patzly
Copy link

patzly commented Sep 14, 2023

As we can read at https://m3.material.io/styles/color/overview (and also experience with Material Components Android) the approach for surface colors has changed to a more flexible one, so I would instead wish that the new attributes like colorSurfaceContainerHigh will be implemented into the theme builder and the export feature.

@margeeta
Copy link
Collaborator

Hi y'all, new surfaces will be in a future release! Surfaces for Jetpack Compose is currently in progress.

@iqingting
Copy link

@margeeta not update yet, is there a release date for new surfaces?

@EvilasioAnisio
Copy link

Hi, any updates on this?

@mobilekosmos
Copy link

Not only for web, for all others too, I was getting crazy not understanding why the generator was not generating all colors visible in the docs.

@margeeta
Copy link
Collaborator

Included in 2.0
Figma: https://www.figma.com/community/plugin/1034969338659738588/material-theme-builder
Web: https://material-foundation.github.io/material-theme-builder/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants