@@ -39,7 +39,7 @@ export const SETS = {
3939export const PAPERS = { cream : "#FFF9F0" , paper : "#FBFAF7" , white : "#FFFFFF" , mist : "#F3F6FA" , sand : "#F7F0E6" , blush : "#FFF1F3" } ;
4040export const RADII = [ "round" , "soft" , "square" ] ;
4141export const FONTS = [ "rounded" , "default" , "serif" , "mono" ] ;
42- export const WEIGHTS = [ "regular" , "bold" , "heavy" ] ;
42+ export const WEIGHTS = [ "regular" , "semibold" , " bold", "heavy" ] ;
4343export const MOTIONS = [ "bouncy" , "calm" , "snappy" ] ;
4444// A motion look in the person's words (YUI-123): four keys on top of the
4545// character `motion=` names. Timings for each value are in motion.mjs.
@@ -70,7 +70,7 @@ export const YUI = {
7070 name : "yui" ,
7171 light : { background : "#FFF9F0" , surface : "#FFFFFF" , ink : "#3A3340" , inkSoft : "#6E6478" , outline : "#F0E4D6" , accent : "#FF7E8A" , onAccent : "#3A3340" , userBubble : "#FFA8B0" , userInk : "#3A3340" , agentBubble : "#FFFFFF" , agentInk : "#3A3340" } ,
7272 dark : { background : "#231D33" , surface : "#2F2842" , ink : "#F6EEF7" , inkSoft : "#A99FB8" , outline : "#3D3452" , accent : "#FF7E8A" , onAccent : "#2A2238" , userBubble : "#F28D97" , userInk : "#2A2238" , agentBubble : "#352D4A" , agentInk : "#F6EEF7" } ,
73- radius : "yui" , font : "rounded " , weight : "heavy " , motion : "bouncy" , adjusted : { light : [ ] , dark : [ ] } ,
73+ radius : "yui" , font : "default " , weight : "semibold " , motion : "bouncy" , adjusted : { light : [ ] , dark : [ ] } ,
7474} ;
7575
7676// ---------- color math (sRGB, WCAG 2 relative luminance) ----------
@@ -175,8 +175,8 @@ export function compile(r, name = "custom") {
175175 light : palette ( false ) ,
176176 dark : palette ( true ) ,
177177 radius : RADII . includes ( r . radius ) || r . radius === "yui" ? r . radius : "soft" ,
178- font : FONTS . includes ( r . font ) ? r . font : "rounded " ,
179- weight : WEIGHTS . includes ( r . weight ) ? r . weight : "heavy " ,
178+ font : FONTS . includes ( r . font ) ? r . font : "default " ,
179+ weight : WEIGHTS . includes ( r . weight ) ? r . weight : "semibold " ,
180180 motion : MOTIONS . includes ( r . motion ) ? r . motion : "bouncy" ,
181181 ...Object . fromEntries ( Object . entries ( MOTION_KEYS ) . filter ( ( [ k , vs ] ) => vs . includes ( r [ k ] ) ) . map ( ( [ k ] ) => [ k , r [ k ] ] ) ) ,
182182 adjusted,
0 commit comments