Documentation Index
Fetch the complete documentation index at: https://mintlify.com/apursley2012/neocities-dev/llms.txt
Use this file to discover all available pages before exploring further.
PixelButton is a styled <button> element that combines the bevel-button CSS class with Tailwind utility classes to produce a raised, pressable control consistent with the portfolio’s Y2K aesthetic. It accepts all standard <button> HTML attributes in addition to its own variant and className props.
Props
Controls the button’s colour scheme. One of three values:
| Value | Classes applied | Use case |
|---|---|---|
"primary" | bg-y2k-panel text-y2k-cyan hover:text-white hover:bg-y2k-panelDark | Default call-to-action button |
"secondary" | bg-y2k-panel text-y2k-textMuted hover:text-white | Secondary / supporting action |
"accent" | bg-y2k-magenta text-white hover:bg-y2k-purple | Highlighted / promotional action |
Button label or content. For icon-plus-label buttons, pass them as sibling nodes — the base class includes
flex items-center justify-center gap-2 so icons and text align automatically.Additional Tailwind classes appended after the variant classes. Use this to override width, padding, or font size, e.g.
"w-full text-sm py-1".<button> attributes (type, onClick, disabled, aria-label, etc.) are forwarded directly to the underlying <button> element via a rest-props spread.
Base styles
EveryPixelButton receives these classes regardless of variant:
active:scale-[0.98] transform provides a subtle “press” feedback on click. The bevel-button class (defined in assets/main.css) applies a raised box-shadow that inverts to an inset shadow on :active, simulating a physical button depression.
Usage
Primary button
Secondary buttons
Accent button
Form submit button
Button with icon
Because the base class already includesflex items-center gap-2, you can drop any icon component directly alongside the label:
Full-width button
The bevel-button class
The bevel-button CSS class is defined in assets/main.css. It applies a multi-layer box-shadow that creates the raised Win95-style bevelled border:
- Default — outer highlight (top-left) + outer shadow (bottom-right) + inner highlight (top-left) + inner shadow (bottom-right)
:active— layers are inverted so the button appears to sink inward
WindowPanel and on the decorative toolbar buttons in FakeBrowserChrome.