@biggora/claude-plugins 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -4
- package/package.json +1 -1
- package/registry/registry.json +319 -244
- package/specs/coding.md +24 -0
- package/specs/pod.md +2 -0
- package/src/skills/captcha/README.md +221 -0
- package/src/skills/captcha/SKILL.md +355 -0
- package/src/skills/captcha/references/captcha-types.md +254 -0
- package/src/skills/captcha/references/services.md +172 -0
- package/src/skills/captcha/references/stealth.md +238 -0
- package/src/skills/captcha/scripts/solve_captcha.py +323 -0
- package/src/skills/captcha/scripts/solve_image_grid.py +350 -0
- package/src/skills/google-merchant-api/SKILL.md +581 -0
- package/src/skills/google-merchant-api/references/accounts.md +247 -0
- package/src/skills/google-merchant-api/references/content-api-legacy.md +216 -0
- package/src/skills/google-merchant-api/references/datasources.md +233 -0
- package/src/skills/google-merchant-api/references/inventories.md +201 -0
- package/src/skills/google-merchant-api/references/migration.md +267 -0
- package/src/skills/google-merchant-api/references/products.md +316 -0
- package/src/skills/google-merchant-api/references/promotions.md +201 -0
- package/src/skills/google-merchant-api/references/reports.md +240 -0
- package/src/skills/lv-aggregators-api/SKILL.md +113 -0
- package/src/skills/lv-aggregators-api/references/integration-guide.md +368 -0
- package/src/skills/lv-aggregators-api/references/kurpirkt.md +103 -0
- package/src/skills/lv-aggregators-api/references/salidzini.md +122 -0
- package/src/skills/tailwindcss-best-practices/SKILL.md +180 -0
- package/src/skills/tailwindcss-best-practices/references/best-practices-utility-patterns.md +87 -0
- package/src/skills/tailwindcss-best-practices/references/core-installation.md +109 -0
- package/src/skills/tailwindcss-best-practices/references/core-preflight.md +200 -0
- package/src/skills/tailwindcss-best-practices/references/core-responsive.md +163 -0
- package/src/skills/tailwindcss-best-practices/references/core-source-detection.md +114 -0
- package/src/skills/tailwindcss-best-practices/references/core-theme.md +108 -0
- package/src/skills/tailwindcss-best-practices/references/core-utility-classes.md +59 -0
- package/src/skills/tailwindcss-best-practices/references/core-variants.md +204 -0
- package/src/skills/tailwindcss-best-practices/references/effects-form-controls.md +76 -0
- package/src/skills/tailwindcss-best-practices/references/effects-mask.md +91 -0
- package/src/skills/tailwindcss-best-practices/references/effects-scroll-snap.md +59 -0
- package/src/skills/tailwindcss-best-practices/references/effects-text-shadow.md +78 -0
- package/src/skills/tailwindcss-best-practices/references/effects-transition-animation.md +80 -0
- package/src/skills/tailwindcss-best-practices/references/effects-visibility-interactivity.md +82 -0
- package/src/skills/tailwindcss-best-practices/references/features-content-detection.md +175 -0
- package/src/skills/tailwindcss-best-practices/references/features-custom-styles.md +203 -0
- package/src/skills/tailwindcss-best-practices/references/features-dark-mode.md +137 -0
- package/src/skills/tailwindcss-best-practices/references/features-functions-directives.md +241 -0
- package/src/skills/tailwindcss-best-practices/references/features-upgrade.md +160 -0
- package/src/skills/tailwindcss-best-practices/references/layout-aspect-ratio.md +39 -0
- package/src/skills/tailwindcss-best-practices/references/layout-columns.md +80 -0
- package/src/skills/tailwindcss-best-practices/references/layout-display.md +110 -0
- package/src/skills/tailwindcss-best-practices/references/layout-flexbox.md +112 -0
- package/src/skills/tailwindcss-best-practices/references/layout-grid.md +87 -0
- package/src/skills/tailwindcss-best-practices/references/layout-height.md +97 -0
- package/src/skills/tailwindcss-best-practices/references/layout-inset.md +103 -0
- package/src/skills/tailwindcss-best-practices/references/layout-logical-properties.md +92 -0
- package/src/skills/tailwindcss-best-practices/references/layout-margin.md +126 -0
- package/src/skills/tailwindcss-best-practices/references/layout-min-max-sizing.md +63 -0
- package/src/skills/tailwindcss-best-practices/references/layout-object-fit-position.md +64 -0
- package/src/skills/tailwindcss-best-practices/references/layout-overflow.md +57 -0
- package/src/skills/tailwindcss-best-practices/references/layout-padding.md +77 -0
- package/src/skills/tailwindcss-best-practices/references/layout-position.md +85 -0
- package/src/skills/tailwindcss-best-practices/references/layout-tables.md +67 -0
- package/src/skills/tailwindcss-best-practices/references/layout-width.md +102 -0
- package/src/skills/tailwindcss-best-practices/references/transform-base.md +68 -0
- package/src/skills/tailwindcss-best-practices/references/transform-rotate.md +70 -0
- package/src/skills/tailwindcss-best-practices/references/transform-scale.md +83 -0
- package/src/skills/tailwindcss-best-practices/references/transform-skew.md +62 -0
- package/src/skills/tailwindcss-best-practices/references/transform-translate.md +77 -0
- package/src/skills/tailwindcss-best-practices/references/typography-font-text.md +142 -0
- package/src/skills/tailwindcss-best-practices/references/typography-list-style.md +65 -0
- package/src/skills/tailwindcss-best-practices/references/typography-text-align.md +60 -0
- package/src/skills/tailwindcss-best-practices/references/visual-background.md +76 -0
- package/src/skills/tailwindcss-best-practices/references/visual-border.md +108 -0
- package/src/skills/tailwindcss-best-practices/references/visual-effects.md +111 -0
- package/src/skills/tailwindcss-best-practices/references/visual-svg.md +82 -0
- package/src/skills/test-mobile-app/SKILL.md +11 -6
- package/src/skills/test-mobile-app/scripts/analyze_apk.py +15 -4
- package/src/skills/test-mobile-app/scripts/check_environment.py +5 -5
- package/src/skills/test-mobile-app/scripts/run_tests.py +1 -1
- package/src/skills/test-web-ui/SKILL.md +264 -84
- package/src/skills/test-web-ui/scripts/discover.py +25 -12
- package/src/skills/test-web-ui/scripts/run_tests.py +3 -2
- package/src/skills/vite-best-practices/SKILL.md +115 -0
- package/src/skills/vite-best-practices/references/build-and-ssr.md +255 -0
- package/src/skills/vite-best-practices/references/core-config.md +231 -0
- package/src/skills/vite-best-practices/references/core-features.md +222 -0
- package/src/skills/vite-best-practices/references/core-plugin-api.md +294 -0
- package/src/skills/vite-best-practices/references/environment-api.md +108 -0
- package/src/skills/vite-best-practices/references/rolldown-migration.md +242 -0
- package/codex-cli-workspace/iteration-1/benchmark.json +0 -122
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/eval_metadata.json +0 -13
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/with_skill/grading.json +0 -52
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/with_skill/outputs/response.md +0 -163
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/with_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/without_skill/grading.json +0 -58
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/without_skill/outputs/response.md +0 -151
- package/codex-cli-workspace/iteration-1/eval-1-ci-integration/without_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/eval_metadata.json +0 -13
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/grading.json +0 -52
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/outputs/response.md +0 -86
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/grading.json +0 -58
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/outputs/response.md +0 -164
- package/codex-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/eval_metadata.json +0 -13
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/with_skill/grading.json +0 -52
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/with_skill/outputs/response.md +0 -130
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/with_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/without_skill/grading.json +0 -64
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/without_skill/outputs/response.md +0 -209
- package/codex-cli-workspace/iteration-1/eval-3-profiles-troubleshooting/without_skill/timing.json +0 -5
- package/codex-cli-workspace/iteration-1/review.html +0 -1325
- package/gemini-cli-workspace/iteration-1/benchmark.json +0 -86
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/eval_metadata.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/with_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/with_skill/outputs/response.md +0 -401
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/without_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/without_skill/outputs/response.md +0 -405
- package/gemini-cli-workspace/iteration-1/eval-1-cicd-setup/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/eval_metadata.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/outputs/response.md +0 -212
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/outputs/response.md +0 -427
- package/gemini-cli-workspace/iteration-1/eval-2-mcp-server-config/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/eval_metadata.json +0 -32
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/with_skill/grading.json +0 -32
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/with_skill/outputs/response.md +0 -171
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/without_skill/grading.json +0 -32
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/without_skill/outputs/response.md +0 -199
- package/gemini-cli-workspace/iteration-1/eval-3-custom-slash-command/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-1/review.html +0 -1325
- package/gemini-cli-workspace/iteration-2/benchmark.json +0 -173
- package/gemini-cli-workspace/iteration-2/benchmark.md +0 -28
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/eval_metadata.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/with_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/with_skill/outputs/response.md +0 -195
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/without_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/without_skill/outputs/response.md +0 -377
- package/gemini-cli-workspace/iteration-2/eval-1-cicd-setup/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/eval_metadata.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/with_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/with_skill/outputs/response.md +0 -127
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/without_skill/grading.json +0 -37
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/without_skill/outputs/response.md +0 -164
- package/gemini-cli-workspace/iteration-2/eval-2-mcp-server-config/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/eval_metadata.json +0 -32
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/with_skill/grading.json +0 -32
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/with_skill/outputs/response.md +0 -91
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/with_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/without_skill/grading.json +0 -32
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/without_skill/outputs/response.md +0 -112
- package/gemini-cli-workspace/iteration-2/eval-3-custom-slash-command/without_skill/timing.json +0 -5
- package/gemini-cli-workspace/iteration-2/eval-viewer.html +0 -1325
- package/screen-recording-workspace/evals.json +0 -41
- package/screen-recording-workspace/iteration-1/benchmark.json +0 -102
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/eval_metadata.json +0 -31
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/with_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/with_skill/outputs/demo.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/with_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/without_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/without_skill/outputs/demo.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-0-fullscreen/without_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/eval_metadata.json +0 -31
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/with_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/with_skill/outputs/region_capture.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/with_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/without_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/without_skill/outputs/region_capture.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-1-region-audio/without_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/eval_metadata.json +0 -31
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/with_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/with_skill/outputs/fallback_recording.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/with_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/without_skill/grading.json +0 -11
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/without_skill/outputs/fallback_recording.mp4 +0 -0
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/without_skill/outputs/record_screen.py +0 -67
- package/screen-recording-workspace/iteration-1/eval-2-python-fallback/without_skill/timing.json +0 -5
- package/screen-recording-workspace/iteration-1/review.html +0 -1325
- package/src/skills/codex-cli/evals/evals.json +0 -47
- package/src/skills/gemini-cli/evals/evals.json +0 -46
- package/src/skills/tm-search/evals/evals.json +0 -23
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-tables
|
|
3
|
+
description: Table layout and border behavior with border-collapse, table-layout
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Table Layout
|
|
7
|
+
|
|
8
|
+
Utilities for controlling table display, border behavior, and layout algorithm.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Border collapse
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<!-- Collapsed: adjacent borders merge into single border -->
|
|
16
|
+
<table class="border-collapse border border-gray-400">
|
|
17
|
+
<thead>
|
|
18
|
+
<tr>
|
|
19
|
+
<th class="border border-gray-300 p-2">State</th>
|
|
20
|
+
<th class="border border-gray-300 p-2">City</th>
|
|
21
|
+
</tr>
|
|
22
|
+
</thead>
|
|
23
|
+
<tbody>
|
|
24
|
+
<tr>
|
|
25
|
+
<td class="border border-gray-300 p-2">Indiana</td>
|
|
26
|
+
<td class="border border-gray-300 p-2">Indianapolis</td>
|
|
27
|
+
</tr>
|
|
28
|
+
</tbody>
|
|
29
|
+
</table>
|
|
30
|
+
|
|
31
|
+
<!-- Separate: each cell has its own borders -->
|
|
32
|
+
<table class="border-separate border border-gray-400">...</table>
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
### Table layout
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<!-- Auto: columns sized to content -->
|
|
39
|
+
<table class="table-auto">...</table>
|
|
40
|
+
|
|
41
|
+
<!-- Fixed: columns use first row widths -->
|
|
42
|
+
<table class="table-fixed">...</table>
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Table display (from layout-display)
|
|
46
|
+
|
|
47
|
+
Combine with `table`, `table-row`, `table-cell`, `table-header-group`, etc. for semantic table structure.
|
|
48
|
+
|
|
49
|
+
### Responsive
|
|
50
|
+
|
|
51
|
+
```html
|
|
52
|
+
<table class="border-collapse md:border-separate">...</table>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Key Points
|
|
56
|
+
|
|
57
|
+
- `border-collapse` - adjacent borders merge (single border between cells)
|
|
58
|
+
- `border-separate` - each cell displays its own borders
|
|
59
|
+
- `table-auto` - column widths from content
|
|
60
|
+
- `table-fixed` - fixed layout; first row sets column widths
|
|
61
|
+
- In v4, `border-*` and `divide-*` default to `currentColor`; specify a color (e.g. `border-gray-200`) explicitly
|
|
62
|
+
|
|
63
|
+
<!--
|
|
64
|
+
Source references:
|
|
65
|
+
- https://tailwindcss.com/docs/border-collapse
|
|
66
|
+
- https://tailwindcss.com/docs/table-layout
|
|
67
|
+
-->
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-width
|
|
3
|
+
description: Setting element width with spacing scale, fractions, container sizes, and viewport units
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Width
|
|
7
|
+
|
|
8
|
+
Utilities for setting the width of an element.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Spacing scale
|
|
13
|
+
|
|
14
|
+
Use `w-<number>` utilities based on the spacing scale:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="w-24">w-24</div>
|
|
18
|
+
<div class="w-48">w-48</div>
|
|
19
|
+
<div class="w-64">w-64</div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Percentage widths
|
|
23
|
+
|
|
24
|
+
Use `w-full` or `w-<fraction>` for percentage-based widths:
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<div class="flex">
|
|
28
|
+
<div class="w-1/2">50%</div>
|
|
29
|
+
<div class="w-1/2">50%</div>
|
|
30
|
+
</div>
|
|
31
|
+
<div class="flex">
|
|
32
|
+
<div class="w-2/5">40%</div>
|
|
33
|
+
<div class="w-3/5">60%</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="w-full">100%</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Container scale
|
|
39
|
+
|
|
40
|
+
Use container size utilities like `w-sm`, `w-md`, `w-lg`:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<div class="w-sm">Small container</div>
|
|
44
|
+
<div class="w-md">Medium container</div>
|
|
45
|
+
<div class="w-xl">Extra large container</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Viewport units
|
|
49
|
+
|
|
50
|
+
Use `w-screen` for full viewport width, or dynamic viewport units:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="w-screen">Full viewport width</div>
|
|
54
|
+
<div class="w-dvw">Dynamic viewport width</div>
|
|
55
|
+
<div class="w-svw">Small viewport width</div>
|
|
56
|
+
<div class="w-lvw">Large viewport width</div>
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### Content-based widths
|
|
60
|
+
|
|
61
|
+
Use `w-auto`, `w-fit`, `w-min`, `w-max` for content-based sizing:
|
|
62
|
+
|
|
63
|
+
```html
|
|
64
|
+
<div class="w-auto">Auto width</div>
|
|
65
|
+
<div class="w-fit">Fit content</div>
|
|
66
|
+
<div class="w-min">Min content</div>
|
|
67
|
+
<div class="w-max">Max content</div>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Size utility
|
|
71
|
+
|
|
72
|
+
Use `size-<number>` to set both width and height:
|
|
73
|
+
|
|
74
|
+
```html
|
|
75
|
+
<div class="size-16">16x16</div>
|
|
76
|
+
<div class="size-24">24x24</div>
|
|
77
|
+
<div class="size-full">100% x 100%</div>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
### Custom values
|
|
81
|
+
|
|
82
|
+
Use arbitrary values for custom widths:
|
|
83
|
+
|
|
84
|
+
```html
|
|
85
|
+
<div class="w-[117px]">Custom pixel width</div>
|
|
86
|
+
<div class="w-[50%]">Custom percentage</div>
|
|
87
|
+
<div class="w-[calc(100%-2rem)]">Custom calculation</div>
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
## Key Points
|
|
91
|
+
|
|
92
|
+
- Spacing scale: `w-0` through `w-96` (and beyond)
|
|
93
|
+
- Fractions: `w-1/2`, `w-1/3`, `w-2/3`, `w-1/4`, `w-3/4`, `w-1/5`, `w-4/5`, `w-1/6`, `w-5/6`
|
|
94
|
+
- Container sizes: `w-3xs`, `w-2xs`, `w-xs`, `w-sm`, `w-md`, `w-lg`, `w-xl`, `w-2xl`, `w-3xl`, `w-4xl`, `w-5xl`, `w-6xl`, `w-7xl`
|
|
95
|
+
- Viewport units: `w-screen` (100vw), `w-dvw`, `w-svw`, `w-lvw`
|
|
96
|
+
- `size-*` utilities set both width and height simultaneously
|
|
97
|
+
- Use `w-auto` to reset width at specific breakpoints
|
|
98
|
+
|
|
99
|
+
<!--
|
|
100
|
+
Source references:
|
|
101
|
+
- https://tailwindcss.com/docs/width
|
|
102
|
+
-->
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: transform-base
|
|
3
|
+
description: Base transform utilities for enabling transforms, hardware acceleration, and custom transform values
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Transform
|
|
7
|
+
|
|
8
|
+
Base utilities for transforming elements.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Hardware acceleration
|
|
13
|
+
|
|
14
|
+
Use `transform-gpu` to force GPU acceleration for better performance:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="scale-150 transform-gpu">
|
|
18
|
+
GPU-accelerated transform
|
|
19
|
+
</div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### CPU rendering
|
|
23
|
+
|
|
24
|
+
Use `transform-cpu` to force CPU rendering if needed:
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<div class="scale-150 transform-cpu">
|
|
28
|
+
CPU-rendered transform
|
|
29
|
+
</div>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Removing transforms
|
|
33
|
+
|
|
34
|
+
Use `transform-none` to remove all transforms:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<div class="skew-y-3 md:transform-none">
|
|
38
|
+
Skewed on mobile, normal on desktop
|
|
39
|
+
</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Custom transforms
|
|
43
|
+
|
|
44
|
+
Use arbitrary values for custom transform functions:
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<div class="transform-[matrix(1,2,3,4,5,6)]">
|
|
48
|
+
Custom matrix transform
|
|
49
|
+
</div>
|
|
50
|
+
<div class="transform-[perspective(1000px)_rotateX(45deg)]">
|
|
51
|
+
Custom 3D transform
|
|
52
|
+
</div>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
## Key Points
|
|
56
|
+
|
|
57
|
+
- `transform-gpu` enables hardware acceleration with `translateZ(0)`
|
|
58
|
+
- `transform-cpu` forces CPU rendering (removes GPU acceleration)
|
|
59
|
+
- `transform-none` removes all transforms at once
|
|
60
|
+
- Use `transform-gpu` for better animation performance
|
|
61
|
+
- Custom transforms use arbitrary values: `transform-[...]`
|
|
62
|
+
- Transform utilities (translate, rotate, scale, skew) automatically enable transform
|
|
63
|
+
- Hardware acceleration is usually beneficial for animations
|
|
64
|
+
|
|
65
|
+
<!--
|
|
66
|
+
Source references:
|
|
67
|
+
- https://tailwindcss.com/docs/transform
|
|
68
|
+
-->
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: transform-rotate
|
|
3
|
+
description: Rotating elements in 2D and 3D space with degree values and custom rotations
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Rotate
|
|
7
|
+
|
|
8
|
+
Utilities for rotating elements.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### 2D rotation
|
|
13
|
+
|
|
14
|
+
Use `rotate-<number>` to rotate by degrees:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="rotate-45">45 degrees</div>
|
|
18
|
+
<div class="rotate-90">90 degrees</div>
|
|
19
|
+
<div class="-rotate-45">-45 degrees (counterclockwise)</div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### 3D rotation
|
|
23
|
+
|
|
24
|
+
Use `rotate-x-<number>`, `rotate-y-<number>`, `rotate-z-<number>` for 3D rotation:
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<div class="rotate-x-50 rotate-z-45">3D rotation</div>
|
|
28
|
+
<div class="rotate-y-25 rotate-z-30">Combined 3D rotation</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Common rotations
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<div class="rotate-90">Quarter turn</div>
|
|
35
|
+
<div class="rotate-180">Half turn</div>
|
|
36
|
+
<div class="rotate-270">Three-quarter turn</div>
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### Custom values
|
|
40
|
+
|
|
41
|
+
Use arbitrary values for custom rotations:
|
|
42
|
+
|
|
43
|
+
```html
|
|
44
|
+
<div class="rotate-[3.142rad]">Custom radian rotation</div>
|
|
45
|
+
<div class="rotate-[45deg]">Explicit degree rotation</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
### Removing rotation
|
|
49
|
+
|
|
50
|
+
Use `rotate-none` to remove rotation:
|
|
51
|
+
|
|
52
|
+
```html
|
|
53
|
+
<div class="rotate-45 md:rotate-none">Rotated on mobile only</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
## Key Points
|
|
57
|
+
|
|
58
|
+
- `rotate-*` rotates in 2D plane (around z-axis)
|
|
59
|
+
- `rotate-x-*` rotates around x-axis (3D)
|
|
60
|
+
- `rotate-y-*` rotates around y-axis (3D)
|
|
61
|
+
- `rotate-z-*` rotates around z-axis (3D, same as `rotate-*`)
|
|
62
|
+
- Negative values rotate counterclockwise: `-rotate-45`
|
|
63
|
+
- Common values: `45`, `90`, `180`, `270` degrees
|
|
64
|
+
- Can combine multiple axes: `rotate-x-50 rotate-y-30 rotate-z-45`
|
|
65
|
+
- Use `rotate-none` to remove all rotations
|
|
66
|
+
|
|
67
|
+
<!--
|
|
68
|
+
Source references:
|
|
69
|
+
- https://tailwindcss.com/docs/rotate
|
|
70
|
+
-->
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: transform-scale
|
|
3
|
+
description: Scaling elements uniformly or on specific axes with percentage values
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Scale
|
|
7
|
+
|
|
8
|
+
Utilities for scaling elements.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Uniform scaling
|
|
13
|
+
|
|
14
|
+
Use `scale-<number>` to scale on both axes (number represents percentage):
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="scale-75">75% size</div>
|
|
18
|
+
<div class="scale-100">100% size (default)</div>
|
|
19
|
+
<div class="scale-125">125% size</div>
|
|
20
|
+
<div class="scale-150">150% size</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Axis-specific scaling
|
|
24
|
+
|
|
25
|
+
Use `scale-x-<number>` or `scale-y-<number>` to scale on one axis:
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="scale-x-75">75% width</div>
|
|
29
|
+
<div class="scale-y-125">125% height</div>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Negative scaling
|
|
33
|
+
|
|
34
|
+
Use negative values to mirror and scale:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<div class="-scale-x-100">Mirrored horizontally</div>
|
|
38
|
+
<div class="-scale-y-100">Mirrored vertically</div>
|
|
39
|
+
<div class="-scale-100">Mirrored both axes</div>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### Hover effects
|
|
43
|
+
|
|
44
|
+
Common pattern for interactive scaling:
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<div class="scale-95 hover:scale-100 transition-transform">
|
|
48
|
+
Grows on hover
|
|
49
|
+
</div>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Removing scale
|
|
53
|
+
|
|
54
|
+
Use `scale-none` to remove scaling:
|
|
55
|
+
|
|
56
|
+
```html
|
|
57
|
+
<div class="scale-125 md:scale-none">Scaled on mobile only</div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Custom values
|
|
61
|
+
|
|
62
|
+
Use arbitrary values for custom scaling:
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<div class="scale-[1.7]">Custom scale value</div>
|
|
66
|
+
<div class="scale-x-[0.8]">Custom x-axis scale</div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Key Points
|
|
70
|
+
|
|
71
|
+
- `scale-*` scales uniformly on both axes
|
|
72
|
+
- `scale-x-*` scales horizontally only
|
|
73
|
+
- `scale-y-*` scales vertically only
|
|
74
|
+
- Values represent percentages: `scale-75` = 75%, `scale-125` = 125%
|
|
75
|
+
- `scale-100` is the default (no scaling)
|
|
76
|
+
- Negative values mirror the element: `-scale-x-100` flips horizontally
|
|
77
|
+
- Common for hover effects: `hover:scale-110`, `active:scale-95`
|
|
78
|
+
- Use `scale-none` to remove all scaling
|
|
79
|
+
|
|
80
|
+
<!--
|
|
81
|
+
Source references:
|
|
82
|
+
- https://tailwindcss.com/docs/scale
|
|
83
|
+
-->
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: transform-skew
|
|
3
|
+
description: Skewing elements on x and y axes with degree values
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Skew
|
|
7
|
+
|
|
8
|
+
Utilities for skewing (distorting) elements.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Skewing both axes
|
|
13
|
+
|
|
14
|
+
Use `skew-<number>` to skew on both axes:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="skew-3">Slight skew</div>
|
|
18
|
+
<div class="skew-6">Moderate skew</div>
|
|
19
|
+
<div class="skew-12">Strong skew</div>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
### Axis-specific skewing
|
|
23
|
+
|
|
24
|
+
Use `skew-x-<number>` or `skew-y-<number>` to skew on one axis:
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<div class="skew-x-12">Skewed horizontally</div>
|
|
28
|
+
<div class="skew-y-6">Skewed vertically</div>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Negative skewing
|
|
32
|
+
|
|
33
|
+
Use negative values for opposite direction:
|
|
34
|
+
|
|
35
|
+
```html
|
|
36
|
+
<div class="-skew-3">Negative skew</div>
|
|
37
|
+
<div class="-skew-x-12">Negative x-axis skew</div>
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Custom values
|
|
41
|
+
|
|
42
|
+
Use arbitrary values for custom skew:
|
|
43
|
+
|
|
44
|
+
```html
|
|
45
|
+
<div class="skew-[3.142rad]">Custom radian skew</div>
|
|
46
|
+
<div class="skew-x-[15deg]">Custom degree skew</div>
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Key Points
|
|
50
|
+
|
|
51
|
+
- `skew-*` skews on both x and y axes
|
|
52
|
+
- `skew-x-*` skews horizontally only
|
|
53
|
+
- `skew-y-*` skews vertically only
|
|
54
|
+
- Values are in degrees: `skew-3` = 3 degrees
|
|
55
|
+
- Negative values skew in opposite direction
|
|
56
|
+
- Common values: `3`, `6`, `12` degrees for subtle effects
|
|
57
|
+
- Use sparingly - excessive skewing can make text hard to read
|
|
58
|
+
|
|
59
|
+
<!--
|
|
60
|
+
Source references:
|
|
61
|
+
- https://tailwindcss.com/docs/skew
|
|
62
|
+
-->
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: transform-translate
|
|
3
|
+
description: Translating elements on x, y, and z axes with spacing scale, percentages, and custom values
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Translate
|
|
7
|
+
|
|
8
|
+
Utilities for translating (moving) elements.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Spacing scale
|
|
13
|
+
|
|
14
|
+
Use `translate-<number>` to translate on both axes, or `translate-x-<number>` / `translate-y-<number>` for single axis:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="translate-2">Moved 2 units</div>
|
|
18
|
+
<div class="-translate-4">Moved -4 units</div>
|
|
19
|
+
<div class="translate-x-4">Moved right 4 units</div>
|
|
20
|
+
<div class="translate-y-6">Moved down 6 units</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Percentage translation
|
|
24
|
+
|
|
25
|
+
Use `translate-<fraction>` to translate by percentage of element size:
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="translate-1/2">Moved 50% on both axes</div>
|
|
29
|
+
<div class="translate-x-1/4">Moved 25% right</div>
|
|
30
|
+
<div class="-translate-y-full">Moved 100% up</div>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
### Centering elements
|
|
34
|
+
|
|
35
|
+
Common pattern for centering absolutely positioned elements:
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<div class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2">
|
|
39
|
+
Centered
|
|
40
|
+
</div>
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Z-axis translation
|
|
44
|
+
|
|
45
|
+
Use `translate-z-<number>` for 3D translation (requires `transform-3d` on parent):
|
|
46
|
+
|
|
47
|
+
```html
|
|
48
|
+
<div class="transform-3d">
|
|
49
|
+
<div class="translate-z-4">Forward in 3D space</div>
|
|
50
|
+
<div class="-translate-z-8">Backward in 3D space</div>
|
|
51
|
+
</div>
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Custom values
|
|
55
|
+
|
|
56
|
+
Use arbitrary values for custom translations:
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<div class="translate-[3.142rad]">Custom translation</div>
|
|
60
|
+
<div class="translate-x-[117px]">Custom pixel value</div>
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
## Key Points
|
|
64
|
+
|
|
65
|
+
- `translate-*` moves on both x and y axes
|
|
66
|
+
- `translate-x-*` moves horizontally (right = positive)
|
|
67
|
+
- `translate-y-*` moves vertically (down = positive)
|
|
68
|
+
- `translate-z-*` moves in 3D space (forward = positive)
|
|
69
|
+
- Negative values use dash prefix: `-translate-4`, `-translate-x-8`
|
|
70
|
+
- Percentages are relative to element's own size
|
|
71
|
+
- Common centering: `top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2`
|
|
72
|
+
- Z-axis requires `transform-3d` utility on parent element
|
|
73
|
+
|
|
74
|
+
<!--
|
|
75
|
+
Source references:
|
|
76
|
+
- https://tailwindcss.com/docs/translate
|
|
77
|
+
-->
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: typography-font-text
|
|
3
|
+
description: Font size, weight, style, text color, line height, letter spacing, and text decoration
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Typography: Font & Text
|
|
7
|
+
|
|
8
|
+
Utilities for font styling, text color, line height, letter spacing, and decoration.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Font size
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<p class="text-xs">Extra small</p>
|
|
16
|
+
<p class="text-sm">Small</p>
|
|
17
|
+
<p class="text-base">Base (default)</p>
|
|
18
|
+
<p class="text-lg">Large</p>
|
|
19
|
+
<p class="text-xl">Extra large</p>
|
|
20
|
+
<p class="text-2xl">2xl</p>
|
|
21
|
+
<p class="text-[17px]">Arbitrary</p>
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### Font weight
|
|
25
|
+
|
|
26
|
+
```html
|
|
27
|
+
<p class="font-thin">100</p>
|
|
28
|
+
<p class="font-light">300</p>
|
|
29
|
+
<p class="font-normal">400</p>
|
|
30
|
+
<p class="font-medium">500</p>
|
|
31
|
+
<p class="font-semibold">600</p>
|
|
32
|
+
<p class="font-bold">700</p>
|
|
33
|
+
<p class="font-extrabold">800</p>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Font style and family
|
|
37
|
+
|
|
38
|
+
```html
|
|
39
|
+
<p class="italic">Italic</p>
|
|
40
|
+
<p class="not-italic">Not italic</p>
|
|
41
|
+
<p class="font-sans">Sans (default)</p>
|
|
42
|
+
<p class="font-serif">Serif</p>
|
|
43
|
+
<p class="font-mono">Monospace</p>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
### Text color
|
|
47
|
+
|
|
48
|
+
```html
|
|
49
|
+
<p class="text-gray-900">Dark text</p>
|
|
50
|
+
<p class="text-blue-500">Blue</p>
|
|
51
|
+
<p class="text-red-500/50">50% opacity</p>
|
|
52
|
+
<p class="text-[#1da1f2]">Arbitrary color</p>
|
|
53
|
+
<p class="text-(--my-color)">CSS variable</p>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Line height
|
|
57
|
+
|
|
58
|
+
```html
|
|
59
|
+
<p class="leading-none">1</p>
|
|
60
|
+
<p class="leading-tight">1.25</p>
|
|
61
|
+
<p class="leading-normal">1.5</p>
|
|
62
|
+
<p class="leading-relaxed">1.625</p>
|
|
63
|
+
<p class="leading-loose">2</p>
|
|
64
|
+
<p class="leading-[3rem]">Arbitrary</p>
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Letter spacing
|
|
68
|
+
|
|
69
|
+
```html
|
|
70
|
+
<p class="tracking-tighter">-0.05em</p>
|
|
71
|
+
<p class="tracking-tight">-0.025em</p>
|
|
72
|
+
<p class="tracking-normal">0</p>
|
|
73
|
+
<p class="tracking-wide">0.025em</p>
|
|
74
|
+
<p class="tracking-widest">0.1em</p>
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### Text decoration
|
|
78
|
+
|
|
79
|
+
```html
|
|
80
|
+
<p class="underline">Underline</p>
|
|
81
|
+
<p class="line-through">Strikethrough</p>
|
|
82
|
+
<p class="no-underline">Remove</p>
|
|
83
|
+
<p class="overline">Overline</p>
|
|
84
|
+
<p class="underline decoration-2 underline-offset-4">Custom</p>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### Text transform and overflow
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<p class="uppercase">UPPERCASE</p>
|
|
91
|
+
<p class="lowercase">lowercase</p>
|
|
92
|
+
<p class="capitalize">Capitalize Each</p>
|
|
93
|
+
<p class="normal-case">Normal</p>
|
|
94
|
+
|
|
95
|
+
<p class="truncate">Single line ellipsis</p>
|
|
96
|
+
<p class="text-ellipsis overflow-hidden">Ellipsis</p>
|
|
97
|
+
<p class="line-clamp-3">Clamp to 3 lines</p>
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### Text wrapping (v4.1+)
|
|
101
|
+
|
|
102
|
+
```html
|
|
103
|
+
<!-- Break long words without breaking layout -->
|
|
104
|
+
<p class="wrap-break-word">superlongwordthatwontfitinasmallcontainer</p>
|
|
105
|
+
|
|
106
|
+
<!-- Allow mid-word breaks (works in flex containers) -->
|
|
107
|
+
<div class="flex">
|
|
108
|
+
<div class="wrap-anywhere">longwordinsideaflex</div>
|
|
109
|
+
</div>
|
|
110
|
+
|
|
111
|
+
<!-- Normal wrapping behavior -->
|
|
112
|
+
<p class="wrap-normal">Default wrapping</p>
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### Font feature settings (v4.2+)
|
|
116
|
+
|
|
117
|
+
```html
|
|
118
|
+
<p class="font-features-['tnum']">Tabular numbers: 1234567890</p>
|
|
119
|
+
<p class="font-features-['smcp']">Small caps text</p>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Key Points
|
|
123
|
+
|
|
124
|
+
- Font size: `text-xs` through `text-9xl`, theme scale
|
|
125
|
+
- Weight: `font-thin` to `font-black`
|
|
126
|
+
- Color: `text-{color}-{shade}`, opacity modifier `/50`, arbitrary `text-[#hex]`
|
|
127
|
+
- Line height: `leading-none`, `leading-tight`, `leading-normal`, `leading-loose`
|
|
128
|
+
- Letter spacing: `tracking-tighter` to `tracking-widest`
|
|
129
|
+
- Decoration: `underline`, `line-through`, `no-underline`, `decoration-*`, `underline-offset-*`
|
|
130
|
+
- Overflow: `truncate` (ellipsis), `line-clamp-{n}`
|
|
131
|
+
- Wrapping (v4.1): `wrap-break-word`, `wrap-anywhere`, `wrap-normal`
|
|
132
|
+
- Font features (v4.2): `font-features-['tnum']`, `font-features-['smcp']`
|
|
133
|
+
|
|
134
|
+
<!--
|
|
135
|
+
Source references:
|
|
136
|
+
- https://tailwindcss.com/docs/font-size
|
|
137
|
+
- https://tailwindcss.com/docs/font-weight
|
|
138
|
+
- https://tailwindcss.com/docs/text-color
|
|
139
|
+
- https://tailwindcss.com/docs/line-height
|
|
140
|
+
- https://tailwindcss.com/docs/letter-spacing
|
|
141
|
+
- https://tailwindcss.com/docs/text-decoration
|
|
142
|
+
-->
|