Skip to content

Commit

Permalink
relative colors from lch() lab() oklch() and oklab() #27
Browse files Browse the repository at this point in the history
  • Loading branch information
tbela99 committed Feb 28, 2024
1 parent 4c368c1 commit b2379ee
Show file tree
Hide file tree
Showing 41 changed files with 3,396 additions and 2,668 deletions.
1,639 changes: 893 additions & 746 deletions dist/index-umd-web.js

Large diffs are not rendered by default.

1,639 changes: 893 additions & 746 deletions dist/index.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/ast/expand.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { splitRule, combinators } from './minify.js';
import { parseString } from '../parser/parse.js';
import { renderToken } from '../renderer/render.js';
import '../renderer/color/color.js';
import { EnumToken } from './types.js';
import { walkValues } from './walk.js';
import '../renderer/color/utils/constants.js';

function expand(ast) {
//
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/ast/features/shorthand.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PropertyList } from '../../parser/declaration/list.js';
import '../../renderer/color/color.js';
import { EnumToken } from '../types.js';
import '../minify.js';
import '../../parser/parse.js';
import '../../renderer/color/utils/constants.js';
import '../../renderer/sourcemap/lib/encode.js';
import { MinifyFeature } from '../utils/minifyfeature.js';

Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/declaration/list.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { PropertySet } from './set.js';
import '../../renderer/color/color.js';
import { EnumToken } from '../../ast/types.js';
import '../../ast/minify.js';
import { parseString } from '../parse.js';
import '../../renderer/color/utils/constants.js';
import '../../renderer/sourcemap/lib/encode.js';
import { getConfig } from '../utils/config.js';
import { PropertyMap } from './map.js';
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/declaration/map.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { eq } from '../utils/eq.js';
import { renderToken } from '../../renderer/render.js';
import '../../renderer/color/color.js';
import { EnumToken } from '../../ast/types.js';
import '../../ast/minify.js';
import { parseString } from '../parse.js';
import '../../renderer/color/utils/constants.js';
import { getConfig } from '../utils/config.js';
import { matchType } from '../utils/type.js';
import { PropertySet } from './set.js';
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/declaration/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { isLength } from '../utils/syntax.js';
import { EnumToken } from '../../ast/types.js';
import '../../ast/minify.js';
import '../parse.js';
import '../../renderer/color/color.js';
import '../../renderer/color/utils/constants.js';
import '../../renderer/sourcemap/lib/encode.js';

function dedup(values) {
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { walkValues, walk } from '../ast/walk.js';
import { expand } from '../ast/expand.js';
import { parseDeclaration } from './utils/declaration.js';
import { renderToken } from '../renderer/render.js';
import { COLORS_NAMES } from '../renderer/color/color.js';
import { COLORS_NAMES } from '../renderer/color/utils/constants.js';
import { tokenize } from './tokenize.js';

const urlTokenMatcher = /^(["']?)[a-zA-Z0-9_/.-][a-zA-Z0-9_/:.#?-]+(\1)$/;
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/tokenize.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { isWhiteSpace, isNewLine, isDigit, isNonPrintable } from './utils/syntax
import { EnumToken } from '../ast/types.js';
import '../ast/minify.js';
import './parse.js';
import '../renderer/color/color.js';
import '../renderer/color/utils/constants.js';
import '../renderer/sourcemap/lib/encode.js';

function* tokenize(stream) {
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/utils/declaration.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import '../../ast/minify.js';
import { walkValues } from '../../ast/walk.js';
import '../parse.js';
import { isWhiteSpace } from './syntax.js';
import '../../renderer/color/color.js';
import '../../renderer/color/utils/constants.js';
import '../../renderer/sourcemap/lib/encode.js';

function parseDeclaration(node, errors, src, position) {
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/utils/syntax.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { colorsFunc } from '../../renderer/render.js';
import { COLORS_NAMES } from '../../renderer/color/color.js';
import { EnumToken } from '../../ast/types.js';
import '../../ast/minify.js';
import '../parse.js';
import { COLORS_NAMES } from '../../renderer/color/utils/constants.js';

// https://www.w3.org/TR/CSS21/syndata.html#syntax
// https://www.w3.org/TR/2021/CRD-css-syntax-3-20211224/#typedef-ident-token
Expand Down
2 changes: 1 addition & 1 deletion dist/lib/parser/utils/type.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { EnumToken } from '../../ast/types.js';
import '../../ast/minify.js';
import '../parse.js';
import '../../renderer/color/color.js';
import '../../renderer/color/utils/constants.js';
import '../../renderer/sourcemap/lib/encode.js';

// https://www.w3.org/TR/css-values-4/#math-function
Expand Down
Loading

0 comments on commit b2379ee

Please sign in to comment.