@digdir/designsystemet-theme
Advanced tools
Comparing version
@@ -1,10 +0,20 @@ | ||
import type {} from '@digdir/designsystemet-react/colors'; | ||
/* This file is deprecated and will be removed in a future release. Use types.d.ts instead */ | ||
/* build: v1.1.5 */ | ||
import type {} from '@digdir/designsystemet/types'; | ||
declare module '@digdir/designsystemet-react/colors' { | ||
export interface MainAndSupportColors { | ||
'accent': never; | ||
'brand1': never; | ||
'brand2': never; | ||
'brand3': never; | ||
// Augment types based on theme | ||
declare module '@digdir/designsystemet/types' { | ||
export interface ColorDefinitions { | ||
accent: never; | ||
brand1: never; | ||
brand2: never; | ||
brand3: never; | ||
neutral: never; | ||
} | ||
export interface SeverityColorDefinitions { | ||
info: never; | ||
success: never; | ||
warning: never; | ||
danger: never; | ||
} | ||
} |
{ | ||
"name": "@digdir/designsystemet-theme", | ||
"version": "0.0.0-next-20250710132619", | ||
"version": "0.0.0-suggestion-multiple-intersection-props-20250821115151", | ||
"description": "Predefined themes for Designsystemet", | ||
@@ -14,3 +14,3 @@ "author": "Designsystemet team", | ||
".": { | ||
"types": "./src/themes/colors.d.ts", | ||
"types": "./src/themes/types.d.ts", | ||
"default": "./src/themes/designsystemet.css" | ||
@@ -36,3 +36,3 @@ }, | ||
"rimraf": "^6.0.1", | ||
"@digdir/designsystemet": "^0.0.0-next-20250710132619" | ||
"@digdir/designsystemet": "^0.0.0-suggestion-multiple-intersection-props-20250821115151" | ||
}, | ||
@@ -39,0 +39,0 @@ "scripts": { |
@@ -1,5 +0,8 @@ | ||
import type {} from '@digdir/designsystemet-react/colors'; | ||
/* This file is deprecated and will be removed in a future release. Use types.d.ts instead */ | ||
/* build: v1.1.5 */ | ||
import type {} from '@digdir/designsystemet/types'; | ||
declare module '@digdir/designsystemet-react/colors' { | ||
export interface MainAndSupportColors { | ||
// Augment types based on theme | ||
declare module '@digdir/designsystemet/types' { | ||
export interface ColorDefinitions { | ||
accent: never; | ||
@@ -9,3 +12,10 @@ brand1: never; | ||
brand3: never; | ||
neutral: never; | ||
} | ||
export interface SeverityColorDefinitions { | ||
info: never; | ||
success: never; | ||
warning: never; | ||
danger: never; | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
328297
0.44%18
12.5%6598
0.86%