Skip to content

Commit

Permalink
fix: add missing classes Fabric supported (#135)
Browse files Browse the repository at this point in the history
Co-authored-by: Silje Christensen <silje.christensen@cognite.com>
  • Loading branch information
siljec and Silje Christensen committed Jul 10, 2023
1 parent 7d3083d commit 4ce6033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/_rules/border.js
Expand Up @@ -18,6 +18,7 @@ const borderStyles = [
export const borders = [
[/^border$/, handlerBorder],
[/^border-transparent$/, () => ({ 'border-color': 'transparent' })],
[/^border-inverted$/, () => ({ 'border-color': 'var(--w-s-border-inverted)' })],
[/^border-inherit$/, () => ({ 'border-color': 'inherit' })],
[/^border-current$/, () => ({ 'border-color': 'currentColor' })],
[/^border()-(\d+)$/, handlerBorder, { autocomplete: "(border)-<directions>" }],
Expand Down
6 changes: 6 additions & 0 deletions src/_rules/typography.js
Expand Up @@ -10,4 +10,10 @@ export const typography = [
({ 'line-height': `var(--w-line-height-${size})` }),
],
[/^leading-\[(.+)(rem|px)?\]/, ([, value, unit], context) => ({ 'line-height': resolveArbitraryValues(value, unit, context) })],
['tabular-nums', { 'font-family': 'ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif', 'font-variant-numeric': 'tabular-nums' }],
['lining-nums', { 'font-variant-numeric': 'lining-nums' }],
['ordinal', { 'font-variant-numeric': 'ordinal' }],
['slashed-zero', { 'font-variant-numeric': 'slashed-zero' }],
['oldstyle-nums', { 'font-variant-numeric': 'oldstyle-nums' }],
['proportional-nums', { 'font-variant-numeric': 'proportional-nums' }],
];

0 comments on commit 4ce6033

Please sign in to comment.