Skip to content
This repository was archived by the owner on Dec 19, 2024. It is now read-only.

Color palettes #75

@David-Mulder

Description

@David-Mulder

The material design spec often talks about stuff like:

Use 50-value of secondary app color for background fill

which as far as I know the best way to go about is using something like --paper-pink-50 for the default app-theme.html, however it sucks that the consumer of an element next has to go through all elements to manually set the the respective values up. Wouldn't it be better to have palettes like

--accent-color-50: var(--paper-red-50);
--accent-color-100: var(--paper-red-100);
--accent-color-200: var(--paper-red-200);
--accent-color-300: var(--paper-red-300);
--accent-color-400: var(--paper-red-400);
--accent-color-500: var(--paper-red-500);
--accent-color-600: var(--paper-red-600);
--accent-color-700: var(--paper-red-700);
--accent-color-800: var(--paper-red-800);
--accent-color-900: var(--paper-red-900);
--accent-color-a100: var(--paper-red-a100);
--accent-color-a200: var(--paper-red-a200);
--accent-color-a400: var(--paper-red-a400);
--accent-color-a700: var(--paper-red-a700);

and then use the correct respective colors wherever we need them. Sure, I get that it takes a bit longer to set it up when you start off, but a simple element could help out a lot there in that case (<paper-theme primary="indigo" accent="red">) and that way you would be 99% done in seconds.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions