@@ -2,6 +2,8 @@ import type { OnboardingBranding, OnboardingStatus } from '../types'
22import css from './.generated/css'
33import { DEVFRAME_LOGO } from './logo'
44
5+ // @unocss -include
6+
57/**
68 * The stand-in floating button, served at `<base>embedded.js`. It asks
79 * `__onboard/status` what to show, offers Install / Disable, and once the
@@ -74,7 +76,10 @@ function mount(initial: OnboardingStatus): void {
7476 const style = document . createElement ( 'style' )
7577 style . textContent = css
7678 const scheme = document . createElement ( 'div' )
77- scheme . className = isDark ( ) ? 'dark' : 'light'
79+ scheme . className = [
80+ isDark ( ) ? 'dark' : 'light' ,
81+ 'devframes-onboard-root' ,
82+ ] . join ( ' ' )
7883 scheme . style . display = 'contents'
7984 root . append ( style , scheme )
8085 if ( initial . branding . primaryColor )
@@ -90,7 +95,7 @@ function mount(initial: OnboardingStatus): void {
9095 pill . setAttribute ( 'aria-expanded' , 'false' )
9196 const glow = document . createElement ( 'span' )
9297 glow . className = 'devframes-onboard-glow'
93- pill . append ( glow , mark ( branding , 'w-4 h-4 ' ) )
98+ pill . append ( mark ( branding , 'w-3 h-3 ' ) )
9499
95100 const panel = document . createElement ( 'div' )
96101 panel . className = 'devframes-onboard-panel'
@@ -116,20 +121,20 @@ function mount(initial: OnboardingStatus): void {
116121 note . hidden = true
117122
118123 const install = button ( 'btn-primary text-sm justify-center' , messages . install , ( ) => void startInstall ( ) )
119- const hide = button ( 'btn-text text-sm color-muted' , messages . hide , ( ) => {
124+ const hide = button ( 'btn-action justify-center text-sm color-muted' , messages . hide , ( ) => {
120125 sessionStorage . setItem ( HIDDEN_KEY , '1' )
121126 host . remove ( )
122127 } )
123- const disable = button ( 'btn-text text-sm color-muted' , messages . disable , ( ) => void disableDevtools ( ) )
128+ const disable = button ( 'btn-action justify-center text-sm color-muted' , messages . disable , ( ) => void disableDevtools ( ) )
124129 const secondary = document . createElement ( 'div' )
125- secondary . className = 'flex items-center gap-1 -ml-2 '
130+ secondary . className = 'grid grid-cols-2 gap-1'
126131 secondary . append ( hide , disable )
127132 const actions = document . createElement ( 'div' )
128- actions . className = 'flex flex-col gap-1 '
129- actions . append ( install , secondary )
133+ actions . className = 'flex flex-col gap-2 '
134+ actions . append ( secondary , install )
130135
131136 panel . append ( heading , description , command , note , actions )
132- scheme . append ( pill , panel )
137+ scheme . append ( glow , pill , panel )
133138
134139 let open = false
135140 const setOpen = ( value : boolean ) => {
0 commit comments