Skip to content

Commit b6e1f54

Browse files
committed
Add: r:<size> variables xs to 4xl
1 parent d3968c4 commit b6e1f54

File tree

2 files changed

+26
-8
lines changed

2 files changed

+26
-8
lines changed

packages/core/src/config/rules.ts

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -771,46 +771,54 @@ const rules = {
771771
'border-top-left-radius': {
772772
key: 'rtl',
773773
unit: 'rem',
774-
type: SyntaxRuleType.Native
774+
type: SyntaxRuleType.Native,
775+
namespaces: ['border-radius']
775776
},
776777
'border-top-right-radius': {
777778
key: 'rtr',
778779
unit: 'rem',
779-
type: SyntaxRuleType.Native
780+
type: SyntaxRuleType.Native,
781+
namespaces: ['border-radius']
780782
},
781783
'border-bottom-left-radius': {
782784
key: 'rbl',
783785
unit: 'rem',
784-
type: SyntaxRuleType.Native
786+
type: SyntaxRuleType.Native,
787+
namespaces: ['border-radius']
785788
},
786789
'border-bottom-right-radius': {
787790
key: 'rbr',
788791
unit: 'rem',
789-
type: SyntaxRuleType.Native
792+
type: SyntaxRuleType.Native,
793+
namespaces: ['border-radius']
790794
},
791795
'border-top-radius': {
792796
key: 'rt',
793797
unit: 'rem',
794798
type: SyntaxRuleType.Shorthand,
795-
declarations: ['border-top-left-radius', 'border-top-right-radius']
799+
declarations: ['border-top-left-radius', 'border-top-right-radius'],
800+
namespaces: ['border-radius']
796801
},
797802
'border-bottom-radius': {
798803
key: 'rb',
799804
unit: 'rem',
800805
type: SyntaxRuleType.Shorthand,
801-
declarations: ['border-bottom-left-radius', 'border-bottom-right-radius']
806+
declarations: ['border-bottom-left-radius', 'border-bottom-right-radius'],
807+
namespaces: ['border-radius']
802808
},
803809
'border-left-radius': {
804810
key: 'rl',
805811
unit: 'rem',
806812
type: SyntaxRuleType.Shorthand,
807-
declarations: ['border-top-left-radius', 'border-bottom-left-radius']
813+
declarations: ['border-top-left-radius', 'border-bottom-left-radius'],
814+
namespaces: ['border-radius']
808815
},
809816
'border-right-radius': {
810817
key: 'rr',
811818
unit: 'rem',
812819
type: SyntaxRuleType.Shorthand,
813-
declarations: ['border-top-right-radius', 'border-bottom-right-radius']
820+
declarations: ['border-top-right-radius', 'border-bottom-right-radius'],
821+
namespaces: ['border-radius']
814822
},
815823
'border-radius': {
816824
key: 'r',

packages/core/src/config/variables.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,16 @@ const variables = {
6161
"9xl": 96,
6262
"10xl": 128
6363
},
64+
'border-radius': {
65+
"xs": 2,
66+
"sm": 4,
67+
"md": 6,
68+
"lg": 8,
69+
"xl": 12,
70+
"2xl": 16,
71+
"3xl": 24,
72+
"4xl": 32,
73+
},
6474
'order': {
6575
'first': -999999,
6676
'last': 999999

0 commit comments

Comments
 (0)