Giter Club home page Giter Club logo

a2k's Introduction

A2K (a2000)

Andricos2000. Build retro user interfaces with modern web technologies

Welcome to a2000 (or a2k for short).

This UI library is designed to capture the feel of the early web, while employing modern UX and web practices.

Note: This is a work in progress, you should not use it in production. But if you decide to try it out, any and all feedback is welcome!

Check out:

  • The docs for an overview of a2k
  • The demo site for the full a2k experience.
  • The storybook to play with each component.

Sponsor

Learn to build a component library using minimal tech with Component Odyssey. As a result, you'll:

  • Become a more future-proof web developer
  • Build components that your users will love
  • Boost your career opportunities
  • Learn to do more with less

Components

Development

Running a2k ui locally

Begin by forking the repo. Whilst in the root directory:

run nvm use, or ensure you're the node version specified in the .nvmrc file.

  • install dependencies using yarn.
  • ensure the tests are passing by running yarn test.
  • kick off the dev server by running yarn develop.
  • run the docs site locally using yarn docs:start.
  • jump into whichever you package you want to change.
  • view your changes in your locally running docs.

Tech stack

a2k uses:

  • ๐Ÿ’ช๐Ÿพ TypeScript to keep things strong(ly typed).
  • ๐Ÿ”ฅ Lit for quickly crafting reactive web components
  • ๐Ÿ“ Changesets to manage changelogs, versioning, and publishing.
  • ๐Ÿ›  Web Test Runner for browser testing.
  • ๐Ÿงผ ESLint + Prettier for keeping code clean like a money machine.
  • ๐ŸŽจ Storybook for cataloging each component.
  • โ˜๏ธ Netlify for hosting a2k in the cloud.
  • ๐Ÿ™‹๐Ÿฝโ€โ™‚๏ธ Andrico for keeping things ticking along.

Basic Usage

CSS

To utilise the default CSS stylesheets for a2k, you'll need to install or download the styles.

View the @a2000/styles for installation instructions.

Every a2k web component inherits styles from the CSS variables defined in the a2k-styles.css file. These styles can be overridden by applying styles to the same variables at a later point in the cascade.

E.g. Overriding the default font-family from Tahoma to Verdana can be done in the following way:

<!DOCTYPE html>
<html lang="en-GB">
  <head>
    <link
      rel="stylesheet"
      href="https://cdn.jsdelivr.net/npm/@a2000/styles/a2k-styles.css"
    />
    <link rel="stylesheet" href="./custom-styles.css" />
  </head>
  <body>
    <!-- Content -->
  </body>
</html>

./custom-styles.css

:root {
  --font-primary: Verdana;
}

You can view which css variables you can override from within the a2k-styles.css file

a2k's People

Contributors

andrico-anima avatar andrico1234 avatar github-actions[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

a2k's Issues

Button's width changes on click down

Steps to reproduce:

  • Navigate to Storybook
  • Click the "auto" button
  • Observe that it affects the layout around itself when it's pressed

Desired behaviour

  • Interacting with the button should not affect the layout of the DOM
down-click.mov

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.