Move classic theme to its own directory
This commit is contained in:
parent
8a9fd1b46e
commit
5f08d0cc4d
12
src/classic/colors.json
Normal file
12
src/classic/colors.json
Normal file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"black": "#1b1f23",
|
||||
"white": "#fff",
|
||||
"gray": ["#fafbfc", "#f6f8fa", "#e1e4e8", "#d1d5da", "#959da5", "#6a737d", "#586069", "#444d56", "#2f363d", "#24292e"],
|
||||
"blue": ["#f1f8ff", "#dbedff", "#c8e1ff", "#79b8ff", "#2188ff", "#0366d6", "#005cc5", "#044289", "#032f62", "#05264c"],
|
||||
"green": ["#f0fff4", "#dcffe4", "#bef5cb", "#85e89d", "#34d058", "#28a745", "#22863a", "#176f2c", "#165c26", "#144620"],
|
||||
"yellow": ["#fffdef", "#fffbdd", "#fff5b1", "#ffea7f", "#ffdf5d", "#ffd33d", "#f9c513", "#dbab09", "#b08800", "#735c0f"],
|
||||
"orange": ["#fff8f2", "#ffebda", "#ffd1ac", "#ffab70", "#fb8532", "#f66a0a", "#e36209", "#d15704", "#c24e00", "#a04100"],
|
||||
"red": ["#ffeef0", "#ffdce0", "#fdaeb7", "#f97583", "#ea4a5a", "#d73a49", "#cb2431", "#b31d28", "#9e1c23", "#86181d"],
|
||||
"purple": ["#f5f0ff", "#e6dcfd", "#d1bcf9", "#b392f0", "#8a63d2", "#6f42c1", "#5a32a3", "#4c2889", "#3a1d6e", "#29134e"],
|
||||
"pink": ["#ffeef8", "#fedbf0", "#f9b3dd", "#f692ce", "#ec6cb9", "#ea4aaa", "#d03592", "#b93a86", "#99306f", "#6d224f"]
|
||||
}
|
|
@ -1,4 +1,4 @@
|
|||
const { colors } = require("@primer/primitives");
|
||||
const colors = require("./colors.json"); // Based on "@primer/primitives": "2.0.1",
|
||||
|
||||
function getColors(style) {
|
||||
if (style === "dark") {
|
|
@ -1,5 +1,5 @@
|
|||
const fs = require("fs").promises;
|
||||
const getTheme = require("./theme");
|
||||
const getTheme = require("./classic/theme");
|
||||
|
||||
const lightTheme = getTheme({
|
||||
style: "light",
|
||||
|
|
Loading…
Reference in a new issue