Skip to content

Commit 4b42c3b

Browse files
committed
Alter example project
1 parent 837a645 commit 4b42c3b

File tree

5 files changed

+36
-18
lines changed

5 files changed

+36
-18
lines changed

Diff for: examples/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!/dist/main.css

Diff for: examples/dist/main.css

+33-13
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
! tailwindcss v3.3.3 | MIT License | https://tailwindcss.com
2+
! tailwindcss v3.4.3 | MIT License | https://tailwindcss.com
33
*/
44

55
/*
@@ -32,9 +32,11 @@
3232
4. Use the user's configured `sans` font-family by default.
3333
5. Use the user's configured `sans` font-feature-settings by default.
3434
6. Use the user's configured `sans` font-variation-settings by default.
35+
7. Disable tap highlights on iOS
3536
*/
3637

37-
html {
38+
html,
39+
:host {
3840
line-height: 1.5;
3941
/* 1 */
4042
-webkit-text-size-adjust: 100%;
@@ -44,12 +46,14 @@ html {
4446
-o-tab-size: 4;
4547
tab-size: 4;
4648
/* 3 */
47-
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
49+
font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
4850
/* 4 */
4951
font-feature-settings: normal;
5052
/* 5 */
5153
font-variation-settings: normal;
5254
/* 6 */
55+
-webkit-tap-highlight-color: transparent;
56+
/* 7 */
5357
}
5458

5559
/*
@@ -121,8 +125,10 @@ strong {
121125
}
122126

123127
/*
124-
1. Use the user's configured `mono` font family by default.
125-
2. Correct the odd `em` font sizing in all browsers.
128+
1. Use the user's configured `mono` font-family by default.
129+
2. Use the user's configured `mono` font-feature-settings by default.
130+
3. Use the user's configured `mono` font-variation-settings by default.
131+
4. Correct the odd `em` font sizing in all browsers.
126132
*/
127133

128134
code,
@@ -131,8 +137,12 @@ samp,
131137
pre {
132138
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
133139
/* 1 */
134-
font-size: 1em;
140+
font-feature-settings: normal;
135141
/* 2 */
142+
font-variation-settings: normal;
143+
/* 3 */
144+
font-size: 1em;
145+
/* 4 */
136146
}
137147

138148
/*
@@ -201,6 +211,8 @@ textarea {
201211
/* 1 */
202212
line-height: inherit;
203213
/* 1 */
214+
letter-spacing: inherit;
215+
/* 1 */
204216
color: inherit;
205217
/* 1 */
206218
margin: 0;
@@ -224,9 +236,9 @@ select {
224236
*/
225237

226238
button,
227-
[type='button'],
228-
[type='reset'],
229-
[type='submit'] {
239+
input:where([type='button']),
240+
input:where([type='reset']),
241+
input:where([type='submit']) {
230242
-webkit-appearance: button;
231243
/* 1 */
232244
background-color: transparent;
@@ -499,6 +511,10 @@ video {
499511
--tw-backdrop-opacity: ;
500512
--tw-backdrop-saturate: ;
501513
--tw-backdrop-sepia: ;
514+
--tw-contain-size: ;
515+
--tw-contain-layout: ;
516+
--tw-contain-paint: ;
517+
--tw-contain-style: ;
502518
--tw-infinite: 99999;
503519
--tw-lightness-threshold: 0.6;
504520
--tw-min-contrast-lightness: 0;
@@ -553,6 +569,10 @@ video {
553569
--tw-backdrop-opacity: ;
554570
--tw-backdrop-saturate: ;
555571
--tw-backdrop-sepia: ;
572+
--tw-contain-size: ;
573+
--tw-contain-layout: ;
574+
--tw-contain-paint: ;
575+
--tw-contain-style: ;
556576
--tw-infinite: 99999;
557577
--tw-lightness-threshold: 0.6;
558578
--tw-min-contrast-lightness: 0;
@@ -819,7 +839,7 @@ video {
819839
.bg-blue-600 {
820840
--tw-bg-l: 0.54615;
821841
--tw-bg-c: 0.215208;
822-
--tw-bg-h: 262.880917;
842+
--tw-bg-h: 262.880919;
823843
--tw-bg-l-offset: 0;
824844
--tw-bg-opacity: 1;
825845
background-color: oklch(clamp(0, calc(var(--tw-bg-l) + var(--tw-bg-l-offset)), 1) var(--tw-bg-c) var(--tw-bg-h) / var(--tw-bg-opacity));
@@ -866,7 +886,7 @@ video {
866886
.text-blue-600 {
867887
--tw-text-l: 0.54615;
868888
--tw-text-c: 0.215208;
869-
--tw-text-h: 262.880917;
889+
--tw-text-h: 262.880919;
870890
--tw-text-l-offset: 0;
871891
--tw-text-opacity: 1;
872892
color: oklch(clamp(0, calc(var(--tw-text-l) + var(--tw-text-l-offset)), 1) var(--tw-text-c) var(--tw-text-h) / var(--tw-text-opacity));
@@ -904,7 +924,7 @@ video {
904924
.hover\:bg-blue-400:hover {
905925
--tw-bg-l: 0.71374;
906926
--tw-bg-c: 0.143381;
907-
--tw-bg-h: 254.624021;
927+
--tw-bg-h: 254.624024;
908928
--tw-bg-l-offset: 0;
909929
--tw-bg-opacity: 1;
910930
background-color: oklch(clamp(0, calc(var(--tw-bg-l) + var(--tw-bg-l-offset)), 1) var(--tw-bg-c) var(--tw-bg-h) / var(--tw-bg-opacity));
@@ -921,7 +941,7 @@ video {
921941
.hover\:text-blue-800:hover {
922942
--tw-text-l: 0.424445;
923943
--tw-text-c: 0.180869;
924-
--tw-text-h: 265.63771;
944+
--tw-text-h: 265.637712;
925945
--tw-text-l-offset: 0;
926946
--tw-text-opacity: 1;
927947
color: oklch(clamp(0, calc(var(--tw-text-l) + var(--tw-text-l-offset)), 1) var(--tw-text-c) var(--tw-text-h) / var(--tw-text-opacity));

Diff for: examples/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h1 class="text-xl font-bold mb-1">Tailwind OKLCH examples</h1>
1515
<a
1616
href="https://github.com/MartijnCuppens/tailwindcss-oklch"
1717
class="underline text-blue-600"
18-
>View on github</a
18+
>View on GitHub</a
1919
>
2020
-
2121
<a

Diff for: examples/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111
"author": "",
1212
"license": "ISC",
1313
"devDependencies": {
14-
"tailwindcss": "^3.3.3"
14+
"tailwindcss": "^3.4.3"
1515
}
1616
}

Diff for: package.json

-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@
1717
"fmt": "prettier --check . --experimental-ternaries",
1818
"fmt:fix": "prettier --write . --experimental-ternaries"
1919
},
20-
"peerDependencies": {
21-
"tailwindcss": ">=3.4.0"
22-
},
2320
"dependencies": {
2421
"colorjs.io": "^0.5.0"
2522
},

0 commit comments

Comments
 (0)