0.1.10 • Published 1 year ago

rosie-ui v0.1.10

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Rosie UI

Rosie UI is a JavaScript library that build on top of React 18.2 and Bootstrap 5.3, helping you build data-intensive, cross-platform web apps for desktops, tablets, and smartphones.

Getting Started

File Structure

your-project/
├── node_modules/
│   ├── rosie-ui
│   │   ├── dist
│   │   │   ├── css
│   │   │   ├── js
│   │   │   ├── webfonts
│   │   ├── scss
├── src/
│   ├── app
│   │   ├── components
│   │   │   ├── _app.component.scss
│   │   │   ├── app.component.tsx
│   │   ├── app.html
│   │   ├── app.scss
│   │   ├── app.tsx
├── package.json
├── tsconfig.json

app.html

<!doctype html>
<html lang="en">
<head>
  <!-- Required meta tags -->
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />

  <title>Hello, world!</title>

  <link rel="stylesheet" href="app.scss" />
</head>
<body>
  <div id="react-root"></div>
  <script src="app.tsx"></script>
</body>
</html>

app.scss

@import '../../node_modules/rosie-ui/dist/css/rosie.css';

@import 'components/app.component';

app.tsx

import { createRoot } from 'react-dom/client';

import { AppComponent } from './components/app.component';

createRoot(document.getElementById('react-root') as HTMLElement).render(<AppComponent />);

Customize

// app.scss
// Option 1: Include all of Rosie UI

@import '../../node_modules/rosie-ui/dist/css/rosie.css';

// Then add additional custom code here
// app.scss
// Option 2: Include parts of Rosie UI

// 1. Include functions first (so you can manipulate colors, SVGs, calc, etc)
@import '../../../node_modules/bootstrap/scss/functions';

// 2. Include any default variable overrides here
// @import '../../../node_modules/rosie-ui/scss/variables';

// 3. Include remainder of required Bootstrap stylesheets

@import '../../../node_modules/bootstrap/scss/bootstrap';

// 5. Include remainder of required parts
@import '../../../node_modules/rosie-ui/scss/mixin';
@import '../../../node_modules/rosie-ui/scss/reset';
@import '../../../node_modules/rosie-ui/scss/utilities';

$fa-font-path: '../../../node_modules/@fortawesome/fontawesome-free/webfonts';

@import '../../../node_modules/@fortawesome/fontawesome-free/scss/fontawesome';
@import '../../../node_modules/@fortawesome/fontawesome-free/scss/solid';

// Then add additional custom code here

License

Rosie UI is released under the MIT license.

0.1.10

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago