@biggora/claude-plugins 1.2.0 → 1.3.0
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 +13 -4
- package/package.json +1 -1
- package/registry/registry.json +334 -244
- package/specs/coding.md +30 -0
- package/specs/pod.md +2 -0
- package/src/commands/skills/add.js +63 -7
- package/src/commands/skills/list.js +23 -52
- package/src/commands/skills/remove.js +26 -27
- package/src/commands/skills/resolve.js +155 -0
- package/src/commands/skills/update.js +58 -74
- 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/nest-best-practices/SKILL.md +251 -0
- package/src/skills/nest-best-practices/references/best-practices-request-lifecycle.md +158 -0
- package/src/skills/nest-best-practices/references/cli-monorepo.md +106 -0
- package/src/skills/nest-best-practices/references/cli-overview.md +157 -0
- package/src/skills/nest-best-practices/references/core-controllers.md +165 -0
- package/src/skills/nest-best-practices/references/core-dependency-injection.md +179 -0
- package/src/skills/nest-best-practices/references/core-middleware.md +139 -0
- package/src/skills/nest-best-practices/references/core-modules.md +138 -0
- package/src/skills/nest-best-practices/references/core-providers.md +188 -0
- package/src/skills/nest-best-practices/references/faq-raw-body-hybrid.md +122 -0
- package/src/skills/nest-best-practices/references/fundamentals-circular-dependency.md +89 -0
- package/src/skills/nest-best-practices/references/fundamentals-custom-decorators.md +107 -0
- package/src/skills/nest-best-practices/references/fundamentals-dynamic-modules.md +125 -0
- package/src/skills/nest-best-practices/references/fundamentals-exception-filters.md +202 -0
- package/src/skills/nest-best-practices/references/fundamentals-execution-context.md +107 -0
- package/src/skills/nest-best-practices/references/fundamentals-guards.md +136 -0
- package/src/skills/nest-best-practices/references/fundamentals-interceptors.md +187 -0
- package/src/skills/nest-best-practices/references/fundamentals-lazy-loading.md +89 -0
- package/src/skills/nest-best-practices/references/fundamentals-lifecycle-events.md +87 -0
- package/src/skills/nest-best-practices/references/fundamentals-module-reference.md +107 -0
- package/src/skills/nest-best-practices/references/fundamentals-pipes.md +197 -0
- package/src/skills/nest-best-practices/references/fundamentals-provider-scopes.md +92 -0
- package/src/skills/nest-best-practices/references/fundamentals-testing.md +142 -0
- package/src/skills/nest-best-practices/references/graphql-overview.md +233 -0
- package/src/skills/nest-best-practices/references/graphql-resolvers-mutations.md +199 -0
- package/src/skills/nest-best-practices/references/graphql-scalars-unions-enums.md +180 -0
- package/src/skills/nest-best-practices/references/graphql-subscriptions.md +228 -0
- package/src/skills/nest-best-practices/references/microservices-grpc.md +175 -0
- package/src/skills/nest-best-practices/references/microservices-overview.md +221 -0
- package/src/skills/nest-best-practices/references/microservices-transports.md +119 -0
- package/src/skills/nest-best-practices/references/openapi-swagger.md +207 -0
- package/src/skills/nest-best-practices/references/recipes-authentication.md +97 -0
- package/src/skills/nest-best-practices/references/recipes-cqrs.md +176 -0
- package/src/skills/nest-best-practices/references/recipes-crud-generator.md +87 -0
- package/src/skills/nest-best-practices/references/recipes-documentation.md +93 -0
- package/src/skills/nest-best-practices/references/recipes-mongoose.md +153 -0
- package/src/skills/nest-best-practices/references/recipes-prisma.md +98 -0
- package/src/skills/nest-best-practices/references/recipes-terminus.md +148 -0
- package/src/skills/nest-best-practices/references/recipes-typeorm.md +122 -0
- package/src/skills/nest-best-practices/references/security-authorization.md +196 -0
- package/src/skills/nest-best-practices/references/security-cors-helmet-rate-limiting.md +204 -0
- package/src/skills/nest-best-practices/references/security-encryption-hashing.md +93 -0
- package/src/skills/nest-best-practices/references/techniques-caching.md +142 -0
- package/src/skills/nest-best-practices/references/techniques-compression-streaming-sse.md +194 -0
- package/src/skills/nest-best-practices/references/techniques-configuration.md +132 -0
- package/src/skills/nest-best-practices/references/techniques-database.md +153 -0
- package/src/skills/nest-best-practices/references/techniques-events.md +163 -0
- package/src/skills/nest-best-practices/references/techniques-fastify.md +137 -0
- package/src/skills/nest-best-practices/references/techniques-file-upload.md +140 -0
- package/src/skills/nest-best-practices/references/techniques-http-module.md +176 -0
- package/src/skills/nest-best-practices/references/techniques-logging.md +146 -0
- package/src/skills/nest-best-practices/references/techniques-mvc-serve-static.md +132 -0
- package/src/skills/nest-best-practices/references/techniques-queues.md +162 -0
- package/src/skills/nest-best-practices/references/techniques-serialization.md +158 -0
- package/src/skills/nest-best-practices/references/techniques-sessions-cookies.md +167 -0
- package/src/skills/nest-best-practices/references/techniques-task-scheduling.md +166 -0
- package/src/skills/nest-best-practices/references/techniques-validation.md +126 -0
- package/src/skills/nest-best-practices/references/techniques-versioning.md +153 -0
- package/src/skills/nest-best-practices/references/websockets-advanced.md +96 -0
- package/src/skills/nest-best-practices/references/websockets-gateways.md +215 -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/typescript-expert/SKILL.md +145 -0
- package/src/skills/typescript-expert/commands/typescript-fix.md +65 -0
- package/src/skills/typescript-expert/references/advanced-conditional-types.md +190 -0
- package/src/skills/typescript-expert/references/advanced-decorators.md +243 -0
- package/src/skills/typescript-expert/references/advanced-mapped-types.md +223 -0
- package/src/skills/typescript-expert/references/advanced-template-literals.md +209 -0
- package/src/skills/typescript-expert/references/advanced-type-guards.md +308 -0
- package/src/skills/typescript-expert/references/best-practices-patterns.md +313 -0
- package/src/skills/typescript-expert/references/best-practices-performance.md +185 -0
- package/src/skills/typescript-expert/references/best-practices-tsconfig.md +242 -0
- package/src/skills/typescript-expert/references/core-generics.md +246 -0
- package/src/skills/typescript-expert/references/core-interfaces-types.md +231 -0
- package/src/skills/typescript-expert/references/core-type-system.md +261 -0
- package/src/skills/typescript-expert/references/core-utility-types.md +235 -0
- package/src/skills/typescript-expert/references/features-ts5x.md +370 -0
- 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,64 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-object-fit-position
|
|
3
|
+
description: Controlling how replaced elements (images, video) are resized and positioned within their container
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Object Fit & Object Position
|
|
7
|
+
|
|
8
|
+
Utilities for controlling how replaced elements like `<img>` and `<video>` are resized and positioned within their container.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Object fit
|
|
13
|
+
|
|
14
|
+
```html
|
|
15
|
+
<!-- Cover container, may crop -->
|
|
16
|
+
<img class="h-48 w-96 object-cover" src="photo.jpg" />
|
|
17
|
+
|
|
18
|
+
<!-- Contain within, may letterbox -->
|
|
19
|
+
<img class="h-48 w-96 object-contain" src="photo.jpg" />
|
|
20
|
+
|
|
21
|
+
<!-- Stretch to fill -->
|
|
22
|
+
<img class="h-48 w-96 object-fill" src="photo.jpg" />
|
|
23
|
+
|
|
24
|
+
<!-- Scale down only if needed, else original size -->
|
|
25
|
+
<img class="h-48 w-96 object-scale-down" src="photo.jpg" />
|
|
26
|
+
|
|
27
|
+
<!-- Original size, ignore container -->
|
|
28
|
+
<img class="h-48 w-96 object-none" src="photo.jpg" />
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Object position
|
|
32
|
+
|
|
33
|
+
```html
|
|
34
|
+
<!-- Named positions -->
|
|
35
|
+
<img class="size-24 object-cover object-top-left" src="photo.jpg" />
|
|
36
|
+
<img class="size-24 object-cover object-center" src="photo.jpg" />
|
|
37
|
+
<img class="size-24 object-cover object-bottom-right" src="photo.jpg" />
|
|
38
|
+
|
|
39
|
+
<!-- Custom value -->
|
|
40
|
+
<img class="object-cover object-[25%_75%]" src="photo.jpg" />
|
|
41
|
+
<img class="object-(--my-object)" src="photo.jpg" />
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### Responsive
|
|
45
|
+
|
|
46
|
+
```html
|
|
47
|
+
<img class="object-contain md:object-cover object-center md:object-top" src="photo.jpg" />
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
## Key Points
|
|
51
|
+
|
|
52
|
+
- `object-contain` - maintain aspect ratio, fit inside container
|
|
53
|
+
- `object-cover` - maintain aspect ratio, cover container (may crop)
|
|
54
|
+
- `object-fill` - stretch to fill container
|
|
55
|
+
- `object-scale-down` - like `contain` but never upscale
|
|
56
|
+
- `object-none` - original size, ignore container
|
|
57
|
+
- Position: `object-top-left`, `object-top`, `object-top-right`, `object-left`, `object-center`, `object-right`, `object-bottom-left`, `object-bottom`, `object-bottom-right`
|
|
58
|
+
- Custom: `object-[25%_75%]`, `object-(--custom-property)`
|
|
59
|
+
|
|
60
|
+
<!--
|
|
61
|
+
Source references:
|
|
62
|
+
- https://tailwindcss.com/docs/object-fit
|
|
63
|
+
- https://tailwindcss.com/docs/object-position
|
|
64
|
+
-->
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-overflow
|
|
3
|
+
description: Controlling how elements handle content that overflows their container
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Overflow
|
|
7
|
+
|
|
8
|
+
Utilities for controlling how an element handles content that is too large for the container.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Basic overflow
|
|
13
|
+
|
|
14
|
+
Use `overflow-auto`, `overflow-hidden`, `overflow-visible`, `overflow-scroll`:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="overflow-auto">Scrolls if needed</div>
|
|
18
|
+
<div class="overflow-hidden">Clips overflow</div>
|
|
19
|
+
<div class="overflow-visible">Shows overflow</div>
|
|
20
|
+
<div class="overflow-scroll">Always shows scrollbars</div>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Axis-specific overflow
|
|
24
|
+
|
|
25
|
+
Use `overflow-x-*` or `overflow-y-*` for horizontal/vertical control:
|
|
26
|
+
|
|
27
|
+
```html
|
|
28
|
+
<div class="overflow-x-auto overflow-y-hidden">
|
|
29
|
+
Horizontal scroll, vertical clip
|
|
30
|
+
</div>
|
|
31
|
+
<div class="overflow-x-scroll overflow-y-auto">
|
|
32
|
+
Horizontal always scrolls, vertical scrolls if needed
|
|
33
|
+
</div>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Overflow clip
|
|
37
|
+
|
|
38
|
+
Use `overflow-clip` for clip behavior (similar to hidden but different scroll behavior):
|
|
39
|
+
|
|
40
|
+
```html
|
|
41
|
+
<div class="overflow-clip">Clips without creating scroll container</div>
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
## Key Points
|
|
45
|
+
|
|
46
|
+
- `overflow-auto` - shows scrollbars only when needed
|
|
47
|
+
- `overflow-hidden` - clips content that overflows
|
|
48
|
+
- `overflow-visible` - allows content to overflow (default for most elements)
|
|
49
|
+
- `overflow-scroll` - always shows scrollbars
|
|
50
|
+
- `overflow-clip` - clips without creating scroll container
|
|
51
|
+
- Use `overflow-x-*` and `overflow-y-*` for axis-specific control
|
|
52
|
+
- Common pattern: `overflow-hidden` for images, `overflow-auto` for scrollable content
|
|
53
|
+
|
|
54
|
+
<!--
|
|
55
|
+
Source references:
|
|
56
|
+
- https://tailwindcss.com/docs/overflow
|
|
57
|
+
-->
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-padding
|
|
3
|
+
description: Controlling element padding with spacing scale, logical properties, and directional utilities
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Padding
|
|
7
|
+
|
|
8
|
+
Utilities for controlling an element's padding.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### All sides
|
|
13
|
+
|
|
14
|
+
Use `p-<number>` to set padding on all sides:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="p-4">Padding on all sides</div>
|
|
18
|
+
<div class="p-8">Larger padding</div>
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
### Individual sides
|
|
22
|
+
|
|
23
|
+
Use `pt-<number>`, `pr-<number>`, `pb-<number>`, `pl-<number>`:
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<div class="pt-6">Top padding</div>
|
|
27
|
+
<div class="pr-4">Right padding</div>
|
|
28
|
+
<div class="pb-8">Bottom padding</div>
|
|
29
|
+
<div class="pl-2">Left padding</div>
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
### Horizontal and vertical
|
|
33
|
+
|
|
34
|
+
Use `px-<number>` for horizontal, `py-<number>` for vertical:
|
|
35
|
+
|
|
36
|
+
```html
|
|
37
|
+
<div class="px-8">Horizontal padding</div>
|
|
38
|
+
<div class="py-8">Vertical padding</div>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### Logical properties
|
|
42
|
+
|
|
43
|
+
Use `ps-<number>` (padding-inline-start) and `pe-<number>` (padding-inline-end) for RTL support:
|
|
44
|
+
|
|
45
|
+
```html
|
|
46
|
+
<div dir="ltr">
|
|
47
|
+
<div class="ps-8">Left padding in LTR</div>
|
|
48
|
+
<div class="pe-8">Right padding in LTR</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div dir="rtl">
|
|
51
|
+
<div class="ps-8">Right padding in RTL</div>
|
|
52
|
+
<div class="pe-8">Left padding in RTL</div>
|
|
53
|
+
</div>
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Custom values
|
|
57
|
+
|
|
58
|
+
Use arbitrary values for custom padding:
|
|
59
|
+
|
|
60
|
+
```html
|
|
61
|
+
<div class="p-[5px]">Custom padding</div>
|
|
62
|
+
<div class="px-[calc(50%-1rem)]">Custom calculation</div>
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
## Key Points
|
|
66
|
+
|
|
67
|
+
- Spacing scale: `p-0` through `p-96` (and beyond)
|
|
68
|
+
- Individual: `pt-*`, `pr-*`, `pb-*`, `pl-*` for specific sides
|
|
69
|
+
- Axes: `px-*` (horizontal), `py-*` (vertical)
|
|
70
|
+
- Logical: `ps-*` (start), `pe-*` (end) adapt to text direction
|
|
71
|
+
- No negative padding - padding cannot be negative in CSS
|
|
72
|
+
- Common patterns: `p-4`, `px-6`, `py-8`, `pt-2`, `pb-4`
|
|
73
|
+
|
|
74
|
+
<!--
|
|
75
|
+
Source references:
|
|
76
|
+
- https://tailwindcss.com/docs/padding
|
|
77
|
+
-->
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: layout-position
|
|
3
|
+
description: Controlling element positioning with static, relative, absolute, fixed, and sticky utilities
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Position
|
|
7
|
+
|
|
8
|
+
Utilities for controlling how an element is positioned in the document.
|
|
9
|
+
|
|
10
|
+
## Usage
|
|
11
|
+
|
|
12
|
+
### Static positioning
|
|
13
|
+
|
|
14
|
+
Use `static` to position an element according to the normal flow. Offsets are ignored and it won't act as a position reference for absolutely positioned children:
|
|
15
|
+
|
|
16
|
+
```html
|
|
17
|
+
<div class="static">
|
|
18
|
+
<p>Static parent</p>
|
|
19
|
+
<div class="absolute bottom-0 left-0">
|
|
20
|
+
<p>Absolute child</p>
|
|
21
|
+
</div>
|
|
22
|
+
</div>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Relative positioning
|
|
26
|
+
|
|
27
|
+
Use `relative` to position an element in normal flow. Offsets are calculated relative to the element's normal position, and it acts as a position reference for absolutely positioned children:
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<div class="relative">
|
|
31
|
+
<p>Relative parent</p>
|
|
32
|
+
<div class="absolute bottom-0 left-0">
|
|
33
|
+
<p>Absolute child</p>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Absolute positioning
|
|
39
|
+
|
|
40
|
+
Use `absolute` to position an element outside the normal flow. Neighboring elements act as if it doesn't exist. Offsets are calculated relative to the nearest positioned parent:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<div class="relative">
|
|
44
|
+
<div class="absolute top-0 right-0">
|
|
45
|
+
<p>Absolute child</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Fixed positioning
|
|
51
|
+
|
|
52
|
+
Use `fixed` to position an element relative to the browser window. Offsets are calculated relative to the viewport:
|
|
53
|
+
|
|
54
|
+
```html
|
|
55
|
+
<div class="fixed top-0 right-0 left-0">
|
|
56
|
+
<p>Fixed header</p>
|
|
57
|
+
</div>
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Sticky positioning
|
|
61
|
+
|
|
62
|
+
Use `sticky` to position an element as `relative` until it crosses a threshold, then treat it as `fixed` until its parent is off screen:
|
|
63
|
+
|
|
64
|
+
```html
|
|
65
|
+
<div>
|
|
66
|
+
<div class="sticky top-0">
|
|
67
|
+
<p>Sticky header</p>
|
|
68
|
+
</div>
|
|
69
|
+
<div>Content...</div>
|
|
70
|
+
</div>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Key Points
|
|
74
|
+
|
|
75
|
+
- `static` is the default - elements flow normally
|
|
76
|
+
- `relative` maintains normal flow but allows offsets and becomes a positioning context
|
|
77
|
+
- `absolute` removes from flow and positions relative to nearest positioned ancestor
|
|
78
|
+
- `fixed` positions relative to viewport, stays in place when scrolling
|
|
79
|
+
- `sticky` combines relative and fixed behavior based on scroll position
|
|
80
|
+
- Always use with offset utilities like `top-0`, `right-0`, `inset-0`, etc.
|
|
81
|
+
|
|
82
|
+
<!--
|
|
83
|
+
Source references:
|
|
84
|
+
- https://tailwindcss.com/docs/position
|
|
85
|
+
-->
|
|
@@ -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
|
+
-->
|