원클릭으로
aksel-spacing
Responsive layout patterns using Aksel spacing tokens with Box, VStack, HStack, and HGrid
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Responsive layout patterns using Aksel spacing tokens with Box, VStack, HStack, and HGrid
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
Gi nye apper tilgang til Lumi feedback — ruter Azure via proxy og TokenX direkte til API
Exposed 1.0.0 JDBC DSL patterns (imports, transactions, queries, raw SQL, and types)
Database migration patterns using Flyway with versioned SQL scripts
Sealed class configuration pattern for Kotlin applications with environment-specific settings
Setting up Prometheus metrics, OpenTelemetry tracing, and health endpoints for Nais applications
Responsive layout patterns using Aksel spacing tokens with Box, VStack, HStack, and HGrid
| name | aksel-spacing |
| description | Responsive layout patterns using Aksel spacing tokens with Box, VStack, HStack, and HGrid |
This skill provides responsive layout patterns using Nav Aksel Design System spacing tokens.
NEVER use Tailwind padding/margin utilities (p-, m-, px-, py-) with Aksel components.
Always use Aksel spacing tokens: space-4, space-6, space-8, etc.
import { Box, VStack } from '@navikt/ds-react';
export default function Page() {
return (
<main>
<Box
paddingBlock={{ xs: 'space-8', md: 'space-12' }}
paddingInline={{ xs: 'space-4', md: 'space-10' }}
>
<VStack gap={{ xs: 'space-6', md: 'space-8' }}>
{/* Page content */}
</VStack>
</Box>
</main>
);
}
import { Box, VStack, Heading, BodyShort } from '@navikt/ds-react';
export function Card({ title, children }: { title: string; children: React.ReactNode }) {
return (
<Box
background="surface-default"
padding={{ xs: 'space-6', md: 'space-8' }}
borderRadius="large"
borderWidth="1"
borderColor="border-subtle"
>
<VStack gap="space-4">
<Heading size="medium">{title}</Heading>
<BodyShort>{children}</BodyShort>
</VStack>
</Box>
);
}
import { HGrid, Box, VStack, Heading } from '@navikt/ds-react';
export function Dashboard() {
return (
<VStack gap={{ xs: 'space-6', md: 'space-8' }}>
<Heading size="xlarge">Dashboard</Heading>
<HGrid gap="space-4" columns={{ xs: 1, sm: 2, lg: 4 }}>
<MetricCard title="Users" value="1 234" />
<MetricCard title="Revenue" value="5 678" />
<MetricCard title="Orders" value="910" />
<MetricCard title="Growth" value="+12%" />
</HGrid>
<Box
background="surface-subtle"
padding={{ xs: 'space-6', md: 'space-8' }}
borderRadius="large"
>
{/* Content */}
</Box>
</VStack>
);
}