# Link Documentation for the Link component. ## Installation ```bash deno run -A jsr:@lockness/ui add link ``` ## Usage ```tsx import { Link } from '@lockness/ui/components' Go to Dashboard Settings ``` ## Props | Prop | Type | Default | Description | | ---- | ---- | ------- | ----------- | | TBD | TBD | TBD | TBD | ## Theming The Link component can be customized using CSS variables. This allows you to change the appearance of links and their variants globally or override specific instances. ### Available CSS Variables | Variable | Default | Description | | ----------------------------------- | ------------------------------- | -------------------------------------------- | | `--link-primary-background` | `var(--primary)` | Background color for primary variant | | `--link-primary-background-hover` | `var(--primary) / 0.9` | Hover background color for primary variant | | `--link-primary-foreground` | `var(--primary-foreground)` | Text color for primary variant | | `--link-secondary-background` | `var(--secondary)` | Background color for secondary variant | | `--link-secondary-background-hover` | `var(--secondary) / 0.8` | Hover background color for secondary variant | | `--link-secondary-foreground` | `var(--secondary-foreground)` | Text color for secondary variant | | `--link-danger-background` | `var(--destructive)` | Background color for danger variant | | `--link-danger-background-hover` | `var(--destructive) / 0.9` | Hover background color for danger variant | | `--link-danger-foreground` | `var(--destructive-foreground)` | Text color for danger variant | | `--link-default-color` | `var(--foreground)` | Text color for default link | | `--link-default-underline-offset` | `4px` | Underline offset for default link | | `--link-padding-x` | `1rem` | Horizontal padding for button-style links | | `--link-padding-y` | `0.5rem` | Vertical padding for button-style links | | `--link-border-radius` | `var(--radius)` | Border radius for button-style links | | `--link-font-weight` | `500` | Font weight for links | ### Theming Examples #### Global Customization Customize all links by setting CSS variables in your theme: ```css /* app/view/assets/app.css */ @theme { --link-default-color: hsl(220 70% 50%); --link-default-underline-offset: 2px; --link-font-weight: 600; --link-padding-x: 1.5rem; --link-padding-y: 0.75rem; } ``` #### Local Overrides Override CSS variables for specific link instances: ```tsx