swadhinbiswas Initial release v0.1.0 · 1/16/2026
ed7a4e4
45 lines · 1.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// Frontend type definitions matching Rust backend

export interface BoardInfo {
    id: string
    name: string
    category: BoardCategory
    nsfw: boolean
    description?: string
}

export type BoardCategory =
    | 'Favorites'
    | 'Recent'
    | 'JapaneseCulture'
    | 'VideoGames'
    | 'Interests'
    | 'Creative'
    | 'Other'
    | 'Misc'
    | 'Adult'

export const CATEGORY_ICONS: Record<BoardCategory, string> = {
    Favorites: '⭐',
    Recent: '📜',
    JapaneseCulture: '👺',
    VideoGames: '🎮',
    Interests: '💡',
    Creative: '🎨',
    Other: '📝',
    Misc: '🔞',
    Adult: '⛔',
}

export const CATEGORY_COLORS: Record<BoardCategory, string> = {
    Favorites: '#fbbf24', // amber
    Recent: '#60a5fa', // blue 400
    JapaneseCulture: '#f472b6', // pink 400
    VideoGames: '#a78bfa', // purple 400
    Interests: '#34d399', // emerald 400
    Creative: '#f87171', // red 400
    Other: '#9ca3af', // gray 400
    Misc: '#ef4444', // red 500
    Adult: '#ef4444', // red 500
}