Skip to content

Commit

Permalink
@0.2.9: typo inherits text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
artemis-prime committed Feb 3, 2024
1 parent 092def1 commit 97856e8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkgs/luxdefi-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@luxdefi/ui",
"version": "0.2.8",
"version": "0.2.9",
"description": "Library that contains shared UI primitives, styles, and core types",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
Expand Down
4 changes: 4 additions & 0 deletions pkgs/luxdefi-ui/style/lux-tw-base-layer.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
/* required on iOS */
}

.text-align-inherit {
text-align: inherit;
}

:root, .lux-light-theme {
--lx-fg-0: hsl(0 0% 0%);
--lx-fg-body: hsl(0 0% 10%);
Expand Down
10 changes: 9 additions & 1 deletion pkgs/luxdefi-ui/tailwind/typo-plugin/get-plugin-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const defaultCSS = {

color: 'var(--tw-prose-body)',
// YUCK maxWidth: '65ch',
p: {}, // Required to maintain correct order when merging
p: {
textAlign: 'inherit'
}, // Required to maintain correct order when merging
'p:first-child': {},
'p:last-child': {},
a: {
Expand Down Expand Up @@ -87,25 +89,31 @@ const defaultCSS = {
h1: {
color: 'var(--tw-prose-headings)',
fontWeight: '800',
textAlign: 'inherit'
},
h2: {
color: 'var(--tw-prose-headings)',
fontWeight: '700',
textAlign: 'inherit'
},
h3: {
color: 'var(--tw-prose-headings)',
fontWeight: '600',
textAlign: 'inherit'
},
h4: {
color: 'var(--tw-prose-headings)',
fontWeight: '600',
textAlign: 'inherit'
},
h5: {
color: 'var(--tw-prose-headings)',
fontWeight: '600',
textAlign: 'inherit'
},
h6: {
color: 'var(--tw-prose-headings)',
textAlign: 'inherit'
},
img: {},
'img:first-child': {
Expand Down

0 comments on commit 97856e8

Please sign in to comment.