|
| 1 | +<script src="https://cdn.tailwindcss.com/3.3.3?plugins=typography,aspect-ratio"></script> |
| 2 | + |
| 3 | +<style type="text/tailwindcss"> |
| 4 | + @layer base { |
| 5 | + .body-tiny { |
| 6 | + @apply font-sans font-normal text-xs; |
| 7 | + } |
| 8 | + |
| 9 | + .body-tiny-bold { |
| 10 | + @apply font-sans font-semibold text-xs; |
| 11 | + } |
| 12 | + |
| 13 | + .body-small { |
| 14 | + @apply font-sans font-normal text-sm; |
| 15 | + } |
| 16 | + |
| 17 | + .body-small-bold { |
| 18 | + @apply font-sans font-semibold text-sm; |
| 19 | + } |
| 20 | + |
| 21 | + .body-text { |
| 22 | + @apply font-sans font-normal text-base; |
| 23 | + } |
| 24 | + |
| 25 | + .body-text-bold { |
| 26 | + @apply font-sans font-semibold text-base; |
| 27 | + } |
| 28 | + |
| 29 | + .body-title { |
| 30 | + @apply font-sans font-semibold text-xl; |
| 31 | + } |
| 32 | + } |
| 33 | +</style> |
| 34 | + |
| 35 | +<script type="module"> |
| 36 | + import forms from '@tailwindcss/forms' |
| 37 | + import containerQueries from '@tailwindcss/forms' |
| 38 | + const {defaultTheme} = tailwind |
| 39 | + tailwind.config = { |
| 40 | + theme: { |
| 41 | + extend: { |
| 42 | + aria: { |
| 43 | + current: 'current="true"', |
| 44 | + }, |
| 45 | + fontFamily: { |
| 46 | + sans: ["Inter var", ...defaultTheme.fontFamily.sans], |
| 47 | + }, |
| 48 | + colors: { |
| 49 | + transparent: "transparent", |
| 50 | + current: "currentColor", |
| 51 | + |
| 52 | + // Primary palette |
| 53 | + solidusRed: "#ef3023", |
| 54 | + black: "#222222", |
| 55 | + graphite: "#c7ccc7", |
| 56 | + graphiteLight: "#d8dad8", |
| 57 | + sand: "#f5f3f0", |
| 58 | + white: "#ffffff", |
| 59 | + |
| 60 | + // Secondary palette |
| 61 | + yellow: "#fdc071", |
| 62 | + orange: "#f68050", |
| 63 | + blue: "#2554b1", |
| 64 | + moss: "#2d3925", |
| 65 | + forest: "#096756", |
| 66 | + midnight: "#163449", |
| 67 | + pink: "#f6d7e2", |
| 68 | + plum: "#3a0e31", |
| 69 | + sky: "#cbdff1", |
| 70 | + seafoam: "#c1e0de", |
| 71 | + dune: "#e6bf9b", |
| 72 | + |
| 73 | + // Extra colors (not part of the original palette) |
| 74 | + papayaWhip: "#f9e3d9", |
| 75 | + |
| 76 | + // UI Red |
| 77 | + red: { |
| 78 | + 100: "#f8d6d3", |
| 79 | + 200: "#f1ada7", |
| 80 | + 300: "#ea8980", |
| 81 | + 400: "#e36054", |
| 82 | + 500: "#dc3728", |
| 83 | + 600: "#b12c20", |
| 84 | + 700: "#862219", |
| 85 | + 800: "#561610", |
| 86 | + 900: "#2b0b08", |
| 87 | + }, |
| 88 | + |
| 89 | + // Grayscale |
| 90 | + gray: { |
| 91 | + 15: "#fafafa", |
| 92 | + 25: "#f5f5f5", |
| 93 | + 50: "#f0f0f0", |
| 94 | + 100: "#dedede", |
| 95 | + 200: "#cfcfcf", |
| 96 | + 300: "#bababa", |
| 97 | + 400: "#a3a3a3", |
| 98 | + 500: "#737373", |
| 99 | + 600: "#616161", |
| 100 | + 700: "#4a4a4a", |
| 101 | + 800: "#333333", |
| 102 | + }, |
| 103 | + }, |
| 104 | + borderRadius: { |
| 105 | + sm: "4px", |
| 106 | + }, |
| 107 | + backgroundImage: { |
| 108 | + "arrow-right-up-line": "url('<%= image_path('solidus_admin/arrow_right_up_line.svg') %>')", |
| 109 | + "arrow-down-s-fill-gray-700": "url('<%= image_path('solidus_admin/arrow_down_s_fill_gray_700.svg') %>')", |
| 110 | + "arrow-down-s-fill-red-400": "url('<%= image_path('solidus_admin/arrow_down_s_fill_red_400.svg') %>')", |
| 111 | + }, |
| 112 | + boxShadow: { |
| 113 | + sm: "0px 1px 2px 0px rgba(0, 0, 0, 0.04)", |
| 114 | + base: "0px 4px 8px 0px rgba(0, 0, 0, 0.08), 0px 2px 4px -1px rgba(0, 0, 0, 0.04)", |
| 115 | + }, |
| 116 | + }, |
| 117 | + }, |
| 118 | + plugins: [ |
| 119 | + ({ addVariant }) => { |
| 120 | + addVariant("hidden", "&([hidden])") |
| 121 | + addVariant("visible", "&:not([hidden])") |
| 122 | + addVariant("search-cancel", "&::-webkit-search-cancel-button") |
| 123 | + }, |
| 124 | + forms({ strategy: "class" }), |
| 125 | + containerQueries(), |
| 126 | + ], |
| 127 | + } |
| 128 | + |
| 129 | + document.addEventListener("turbo:render", () => { |
| 130 | + document.body.className += " " // This is a hack to trigger TW's JIT compiler |
| 131 | + }) |
| 132 | +</script> |
0 commit comments