Skip to content

Commit

Permalink
add logical border color properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sherlockdoyle committed Oct 2, 2024
1 parent 63b477e commit 6eaec79
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib/default-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1158,6 +1158,16 @@ export const getDefaultConfig = () => {
* @see https://tailwindcss.com/docs/border-color
*/
'border-color-y': [{ 'border-y': [borderColor] }],
/**
* Border Color S
* @see https://tailwindcss.com/docs/border-color
*/
'border-color-s': [{ 'border-s': [borderColor] }],
/**
* Border Color E
* @see https://tailwindcss.com/docs/border-color
*/
'border-color-e': [{ 'border-e': [borderColor] }],
/**
* Border Color Top
* @see https://tailwindcss.com/docs/border-color
Expand Down Expand Up @@ -1821,6 +1831,8 @@ export const getDefaultConfig = () => {
'border-w-x': ['border-w-r', 'border-w-l'],
'border-w-y': ['border-w-t', 'border-w-b'],
'border-color': [
'border-color-s',
'border-color-e',
'border-color-t',
'border-color-r',
'border-color-b',
Expand Down
2 changes: 2 additions & 0 deletions src/lib/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,10 @@ export type DefaultClassGroupIds =
| 'blur'
| 'border-collapse'
| 'border-color-b'
| 'border-color-e'
| 'border-color-l'
| 'border-color-r'
| 'border-color-s'
| 'border-color-t'
| 'border-color-x'
| 'border-color-y'
Expand Down
2 changes: 2 additions & 0 deletions tests/class-map.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ test('class map has correct class groups at first part', () => {
'border-collapse',
'border-color',
'border-color-b',
'border-color-e',
'border-color-l',
'border-color-r',
'border-color-s',
'border-color-t',
'border-color-x',
'border-color-y',
Expand Down

0 comments on commit 6eaec79

Please sign in to comment.