refactor: move common to theme folder

This commit is contained in:
Sergey Onufrienko 2023-05-30 16:53:12 +02:00
parent ac63043c27
commit 05d1dd6b11
No known key found for this signature in database
GPG key ID: 3299873ECFD30CA3
6 changed files with 8 additions and 8 deletions

View file

@ -4,7 +4,7 @@ import { ColorScheme, Meta } from "./themes/common/colorScheme"
const THEMES_DIRECTORY = path.resolve(`${__dirname}/themes`)
const STAFF_DIRECTORY = path.resolve(`${__dirname}/themes/staff`)
const IGNORE_ITEMS = ["staff", "common", "template.ts"]
const IGNORE_ITEMS = ["staff", "common", "common.ts"]
const ACCEPT_EXTENSION = ".ts"
function getAllTsFiles(directoryPath: string) {

View file

@ -1,4 +1,4 @@
import { License, Meta, ThemeSyntax } from "./colorScheme"
import { License, Meta, ThemeSyntax } from "../common/colorScheme"
export interface Variant {
meta: Meta

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,

View file

@ -1,5 +1,5 @@
import { createColorScheme } from "../common/ramps"
import { ayu, meta as themeMeta, buildTheme } from "../common/ayu-common"
import { ayu, meta as themeMeta, buildTheme } from "./common"
export const meta = {
...themeMeta,

View file

@ -1,8 +1,8 @@
import { dark, light, mirage } from "ayu"
import { ThemeSyntax } from "./syntax"
import { ThemeSyntax } from "../common/syntax"
import chroma from "chroma-js"
import { colorRamp } from "./ramps"
import { Meta } from "./colorScheme"
import { colorRamp } from "../common/ramps"
import { Meta } from "../common/colorScheme"
export const ayu = {
dark,