diff --git a/src/app/(docs)/docs/index.tsx b/src/app/(docs)/docs/index.tsx index 327746884..43c348b74 100644 --- a/src/app/(docs)/docs/index.tsx +++ b/src/app/(docs)/docs/index.tsx @@ -108,6 +108,7 @@ export default { ["text-overflow", "/docs/text-overflow"], ["text-wrap", "/docs/text-wrap"], ["text-indent", "/docs/text-indent"], + ["tab-size", "/docs/tab-size"], ["vertical-align", "/docs/vertical-align"], ["white-space", "/docs/white-space"], ["word-break", "/docs/word-break"], diff --git a/src/docs/tab-size.mdx b/src/docs/tab-size.mdx new file mode 100644 index 000000000..ffd70f39a --- /dev/null +++ b/src/docs/tab-size.mdx @@ -0,0 +1,67 @@ +import { ApiTable } from "@/components/api-table.tsx"; +import { ResponsiveDesign, UsingACustomValue } from "@/components/content.tsx"; +import { Example } from "@/components/example.tsx"; +import { Figure } from "@/components/figure.tsx"; + +export const title = "tab-size"; +export const description = "Utilities for controlling the size of tab characters."; + +", "tab-size: ;"], + ["tab-()", "tab-size: var();"], + ["tab-[]", "tab-size: ;"], + ]} +/> + +## Examples + +### Basic example + +Use `tab-` utilities like `tab-2` and `tab-8` to control the size of tab characters: + +
+ + +
+
+ tab-2 + +{/* prettier-ignore */} +```jsx +function indent() { + return 'tabbed'; +} +``` + +
+
+ tab-8 + +{/* prettier-ignore */} +```jsx +function indent() { + return 'tabbed'; +} +``` + +
+ +
+
+ +```html + +
function indent() {
	return 'tabbed'
}
+
function indent() {
	return 'tabbed'
}
+``` + +
+ +### Using a custom value + + + +### Responsive design + + diff --git a/src/docs/theme.mdx b/src/docs/theme.mdx index ab46e738f..cc2a0275a 100644 --- a/src/docs/theme.mdx +++ b/src/docs/theme.mdx @@ -190,6 +190,14 @@ Defining new theme variables in these namespaces will make new corresponding uti Line height utilities like leading-tight + + + --tab-size-* + + + Tab size utilities like tab-github + + --breakpoint-*