better imports organization

This commit is contained in:
Henry Jameson 2026-01-08 17:26:52 +02:00
commit 42930252b1
167 changed files with 663 additions and 445 deletions

View file

@ -1,4 +1,5 @@
import { brightness, invertLightness } from 'chromatism'
import { alphaBlend, mixrgb } from '../color_convert/color_convert.js'
/* This is a definition of all layer combinations
* each key is a topmost layer, each value represents layer underneath

View file

@ -1,4 +1,5 @@
import { convert } from 'chromatism'
import allKeys from './theme2_keys'
// keys that are meant to be used globally, i.e. what's the rest of the theme is based upon.

View file

@ -1,4 +1,5 @@
import { brightness, convert } from 'chromatism'
import {
alphaBlend,
arithmeticBlend,

View file

@ -1,4 +1,5 @@
import { brightness, contrastRatio, convert } from 'chromatism'
import {
alphaBlendLayers,
getCssColor,

View file

@ -1,6 +1,7 @@
import { brightness, convert } from 'chromatism'
import sum from 'hash-sum'
import { flattenDeep, sortBy } from 'lodash'
import {
alphaBlend,
getTextColor,
@ -9,7 +10,6 @@ import {
rgba2css,
} from '../color_convert/color_convert.js'
import { deserializeShadow } from './iss_deserializer.js'
import {
findRules,
genericRuleToSelector,