Last active
May 11, 2022 03:08
-
-
Save 80x24/7d2699a0f3ab90495f17dc06410ff488 to your computer and use it in GitHub Desktop.
tailwindcss theme colors based on material design 3 (M3) color system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| content: ['./src/**/*.{html,js,ts,svelte}'], | |
| theme: { | |
| extend: { | |
| colors: { | |
| primary: { | |
| DEFAULT: '#6750A4', | |
| container: '#EADDFF', | |
| }, | |
| secondary: { | |
| DEFAULT: '#625B71', | |
| container: '#E8DEF8', | |
| }, | |
| tertiary: { | |
| DEFAULT: '#7D5260', | |
| container: '#FFD8E4', | |
| }, | |
| surface: { | |
| DEFAULT: '#FFFBFE', | |
| variant: '#E7E0EC', | |
| tint: '#6750A4', | |
| }, | |
| background: { | |
| DEFAULT: '#FFFBFE', | |
| }, | |
| error: { | |
| DEFAULT: '#B3261E', | |
| container: '#F9DEDC', | |
| }, | |
| on: { | |
| primary: { | |
| DEFAULT: '#FFFFFF', | |
| container: '#21005E', | |
| }, | |
| secondary: { | |
| DEFAULT: '#FFFFFF', | |
| container: '#1E192B', | |
| }, | |
| tertiary: { | |
| DEFAULT: '#FFFFFF', | |
| container: '#370B1E', | |
| }, | |
| surface: { | |
| DEFAULT: '#1C1B1F', | |
| variant: '#49454E', | |
| }, | |
| error: { | |
| DEFAULT: '#FFFFFF', | |
| container: '#370B1E', | |
| }, | |
| background: { | |
| DEFAULT: '#1C1B1F', | |
| }, | |
| }, | |
| outline: '#79747E', | |
| shadow: '#000000', | |
| inverse: { | |
| surface: '#313033', | |
| on: { | |
| surface: '#F4EFF4', | |
| }, | |
| primary: ' #D0BCFF', | |
| }, | |
| }, | |
| }, | |
| }, | |
| plugins: [], | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment