Skip to content

Commit 9d040cb

Browse files
committed
fix pages
1 parent 7c09fc8 commit 9d040cb

7 files changed

Lines changed: 149 additions & 5 deletions

File tree

database/seeders/RegistrySeeder.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2079,7 +2079,8 @@ className={cn(
20792079
[
20802080
'path' => 'resources/js/registry/new-york/components/blocks/feature-grid/feature-grid.tsx',
20812081
'type' => 'registry:block',
2082-
'content' => 'import {
2082+
'content' => 'import React from \'react\';
2083+
import {
20832084
Zap,
20842085
Shield,
20852086
Sparkles,
@@ -37025,4 +37026,4 @@ interface UsePixelCanvasReturn {
3702537026

3702637027
$this->command->info("Seeded {$total} registry items.");
3702737028
}
37028-
}
37029+
}

database/seeders/ThemeSeeder.php

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5896,6 +5896,109 @@ public static function themes(): array
58965896
'sidebar-ring' => 'oklch(0.72 0.13 60)',
58975897
],
58985898
],
5899+
[
5900+
'name' => 'garden-shed',
5901+
'title' => 'Garden Shed',
5902+
'description' => 'Cozy rustic workspace theme with warm gold tones, forest olive accents, and organic taupe gradients.',
5903+
'font_family' => 'Geist Variable, sans-serif',
5904+
'registryDependencies' => [
5905+
'https://ui.designbycode.co.za/r/fonts/font-geist.json',
5906+
],
5907+
'css' => [
5908+
'@layer base' => [
5909+
'*' => [
5910+
'@apply' => 'border-border outline-ring/50',
5911+
],
5912+
'body' => [
5913+
'@apply' => 'bg-background text-foreground selection:bg-primary/20',
5914+
],
5915+
'html' => [
5916+
'@apply' => 'font-sans',
5917+
],
5918+
],
5919+
],
5920+
'vars_theme' => [
5921+
'font-sans' => 'Geist Variable, sans-serif',
5922+
'font-geist' => 'Geist, sans-serif',
5923+
'font-heading' => 'Geist Variable, sans-serif',
5924+
'radius' => '0.75rem',
5925+
'radius-sm' => 'calc(var(--radius) * 0.6)',
5926+
'radius-md' => 'calc(var(--radius) * 0.8)',
5927+
'radius-lg' => 'var(--radius)',
5928+
'radius-xl' => 'calc(var(--radius) * 1.4)',
5929+
'radius-2xl' => 'calc(var(--radius) * 1.8)',
5930+
'radius-3xl' => 'calc(var(--radius) * 2.2)',
5931+
'radius-4xl' => 'calc(var(--radius) * 2.6)',
5932+
],
5933+
'vars_light' => [
5934+
'background' => 'oklch(0.99 0.004 85)',
5935+
'foreground' => 'oklch(0.20 0.01 70)',
5936+
'card' => 'oklch(1 0 0)',
5937+
'card-foreground' => 'oklch(0.20 0.01 70)',
5938+
'popover' => 'oklch(1 0 0)',
5939+
'popover-foreground' => 'oklch(0.20 0.01 70)',
5940+
'primary' => 'oklch(0.7245 0.0998 82.35)',
5941+
'primary-foreground' => 'oklch(0.15 0.01 70)',
5942+
'secondary' => 'oklch(0.95 0.018 125)',
5943+
'secondary-foreground' => 'oklch(0.28 0.02 125)',
5944+
'accent' => 'oklch(0.93 0.012 70)',
5945+
'accent-foreground' => 'oklch(0.25 0.01 70)',
5946+
'muted' => 'oklch(0.96 0.006 85)',
5947+
'muted-foreground' => 'oklch(0.48 0.01 70)',
5948+
'destructive' => 'oklch(0.577 0.245 27.325)',
5949+
'destructive-foreground' => 'oklch(0.99 0 0)',
5950+
'border' => 'oklch(0.90 0.01 75)',
5951+
'input' => 'oklch(0.90 0.01 75)',
5952+
'ring' => 'oklch(0.7245 0.0998 82.35)',
5953+
'chart-1' => 'oklch(0.7245 0.0998 82.35)',
5954+
'chart-2' => 'oklch(0.60 0.05 125)',
5955+
'chart-3' => 'oklch(0.45 0.03 125)',
5956+
'chart-4' => 'oklch(0.70 0.03 70)',
5957+
'chart-5' => 'oklch(0.35 0.015 70)',
5958+
'sidebar' => 'oklch(0.975 0.005 85)',
5959+
'sidebar-foreground' => 'oklch(0.20 0.01 70)',
5960+
'sidebar-primary' => 'oklch(0.7245 0.0998 82.35)',
5961+
'sidebar-primary-foreground' => 'oklch(0.15 0.01 70)',
5962+
'sidebar-accent' => 'oklch(0.95 0.018 125)',
5963+
'sidebar-accent-foreground' => 'oklch(0.28 0.02 125)',
5964+
'sidebar-border' => 'oklch(0.90 0.01 75)',
5965+
'sidebar-ring' => 'oklch(0.7245 0.0998 82.35)',
5966+
],
5967+
'vars_dark' => [
5968+
'background' => 'oklch(0.18 0.01 70)',
5969+
'foreground' => 'oklch(0.95 0.005 85)',
5970+
'card' => 'oklch(0.22 0.01 70)',
5971+
'card-foreground' => 'oklch(0.95 0.005 85)',
5972+
'popover' => 'oklch(0.22 0.01 70)',
5973+
'popover-foreground' => 'oklch(0.95 0.005 85)',
5974+
'primary' => 'oklch(0.7245 0.0998 82.35)',
5975+
'primary-foreground' => 'oklch(0.15 0.01 70)',
5976+
'secondary' => 'oklch(0.30 0.025 125)',
5977+
'secondary-foreground' => 'oklch(0.95 0.01 125)',
5978+
'accent' => 'oklch(0.32 0.015 70)',
5979+
'accent-foreground' => 'oklch(0.95 0.005 85)',
5980+
'muted' => 'oklch(0.25 0.01 70)',
5981+
'muted-foreground' => 'oklch(0.70 0.01 70)',
5982+
'destructive' => 'oklch(0.704 0.191 22.216)',
5983+
'destructive-foreground' => 'oklch(0.99 0 0)',
5984+
'border' => 'oklch(0.30 0.01 70)',
5985+
'input' => 'oklch(0.30 0.01 70)',
5986+
'ring' => 'oklch(0.7245 0.0998 82.35)',
5987+
'chart-1' => 'oklch(0.7245 0.0998 82.35)',
5988+
'chart-2' => 'oklch(0.55 0.05 125)',
5989+
'chart-3' => 'oklch(0.42 0.03 125)',
5990+
'chart-4' => 'oklch(0.65 0.03 70)',
5991+
'chart-5' => 'oklch(0.82 0.01 85)',
5992+
'sidebar' => 'oklch(0.20 0.01 70)',
5993+
'sidebar-foreground' => 'oklch(0.95 0.005 85)',
5994+
'sidebar-primary' => 'oklch(0.7245 0.0998 82.35)',
5995+
'sidebar-primary-foreground' => 'oklch(0.15 0.01 70)',
5996+
'sidebar-accent' => 'oklch(0.30 0.025 125)',
5997+
'sidebar-accent-foreground' => 'oklch(0.95 0.01 125)',
5998+
'sidebar-border' => 'oklch(0.30 0.01 70)',
5999+
'sidebar-ring' => 'oklch(0.7245 0.0998 82.35)',
6000+
],
6001+
],
58996002
];
59006003
}
59016004
}

public/build/assets/app-4YyWNcOR.css

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

public/build/assets/app-DerFSKP-.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

public/build/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@
792792
"src": "node_modules/@fontsource/bebas-neue/files/bebas-neue-latin-ext-400-normal.woff2"
793793
},
794794
"resources/css/app.css": {
795-
"file": "assets/app-DerFSKP-.css",
795+
"file": "assets/app-4YyWNcOR.css",
796796
"name": "app",
797797
"names": [
798798
"app.css"

resources/js/registry/new-york/components/blocks/feature-grid/feature-grid.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import React from 'react';
12
import {
23
Zap,
34
Shield,

tests/Feature/ThemeSeederTest.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<?php
2+
3+
use App\Models\Theme;
4+
use App\Models\User;
5+
use Database\Seeders\ThemeSeeder;
6+
use Illuminate\Foundation\Testing\RefreshDatabase;
7+
8+
uses(RefreshDatabase::class);
9+
10+
test('theme seeder correctly seeds garden-shed theme', function () {
11+
User::factory()->create(['id' => 1]);
12+
13+
$this->seed(ThemeSeeder::class);
14+
15+
$theme = Theme::where('name', 'garden-shed')->first();
16+
17+
expect($theme)->not->toBeNull();
18+
expect($theme->title)->toBe('Garden Shed');
19+
expect($theme->description)->toContain('rustic workspace theme');
20+
expect($theme->font_family)->toBe('Geist Variable, sans-serif');
21+
22+
// Test vars_theme configuration
23+
expect($theme->vars_theme)->toBeArray();
24+
expect($theme->vars_theme['font-sans'])->toBe('Geist Variable, sans-serif');
25+
expect($theme->vars_theme['radius'])->toBe('0.75rem');
26+
27+
// Test light/dark mode variables
28+
expect($theme->vars_light)->toBeArray();
29+
expect($theme->vars_light['primary'])->toBe('oklch(0.7245 0.0998 82.35)');
30+
expect($theme->vars_light['secondary'])->toBe('oklch(0.95 0.018 125)');
31+
32+
expect($theme->vars_dark)->toBeArray();
33+
expect($theme->vars_dark['primary'])->toBe('oklch(0.7245 0.0998 82.35)');
34+
expect($theme->vars_dark['secondary'])->toBe('oklch(0.30 0.025 125)');
35+
36+
// Test base css rules
37+
expect($theme->css)->toBeArray();
38+
expect($theme->css['@layer base']['*']['@apply'])->toBe('border-border outline-ring/50');
39+
});

0 commit comments

Comments
 (0)