Socket
Socket
Sign inDemoInstall

skateui

Package Overview
Dependencies
1
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    skateui

Vanilla HTML compatible custom UI components


Version published
Maintainers
1
Install size
17.1 MB
Created

Readme

Source

Skate UI

Objective:

  • UI component 100% compatible with vanilla HTML.
  • All HTML attributes should be functional.
  • Style should be easily customizable via css without implementing additional custom attributes.

Notes

  • skateui component is reactive to font-size. this was an intended decision.
  • skateui has shallow bevels on most components. If you are not a fan of the looks, set css box-shadow to none.

Known quirks

  • In safari, outline does not follow border radius.
  • Chrome on linux use text color for input focus outline.
  • skateui use MutationObserver internally. When developing, depending on the os/browser, there can be some minor quirks when:
    • trying to modify css styles directly from developers panel in web browsers.
    • working on live reloads in SPA development.
    but when refreshed, the quirks will go away.

Example

<!DOCTYPE html>

<head>
    <script type='module' src="https://cdn.jsdelivr.net/npm/skateui@latest/dist/skateui/skateui.esm.js"></script>
</head>

<body style="margin:0;">
    <!-- You can now use skateui components -->
    <sui-nav style='padding: .5em;background-color:blue;color:white'>
        <h2>Skate Navbar</h2>
    </sui-nav>

    <sui-overlay id="overlay" onclick="this.close()">
        <div style="background-color:antiquewhite;border: solid 4px black;padding:1em;">
            <h1>Hello Skate UI</h1>
        </div>
    </sui-overlay>
    
    <br><br>
    
    <sui-button onclick="overlay.open()">Skate Button</sui-button>

    <br><br>

    <sui-input value='Skate Input'></sui-input>

    <br><br>

    <sui-select>
        <option value="skateui">Skate Selector</option>
    </sui-select>

    <br><br>

    <sui-textarea placeholder="Skate Textarea"></sui-textarea>
</body>

FAQs

Last updated on 14 Jun 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc