• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    TypeScript
  • License
    Other
  • Created over 9 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

๐ŸŽจ Brainly Front-End Style Guide

Brainly Style Guide

This project is a living style guide of all basic front-end components used at Brainly.

Documentation

Documentation is an esential part of this project. You can see its latest version on styleguide.brainly.com. New version of the docs is deployed with every merge to master. You can also browse older versions by changing version number in the URL. Documentation is splitted into four sections:

  • Basics - colors, fonts, icons, simple components
  • Components - complex components
  • Containers - components that host other components
  • Interactive - interactive version of the style guide docs that we are experimenting with

Storybook

Current version of storybook is hosted under following dev URL - styleguide.brainly.com

How to use it

All components can be used in both HTML and JSX. In both cases you have to include main CSS file, as described on the main docs page, in the head section of your page. In case of HTML, you just have to follow style-guide markup which you can easily copy by clicking on any component in the docs. If you prefer to use React instead, you'll have to add this repository as a dependency in package.json and import components into your JSX file.

Supported Browsers

We officially support the following browsers (based on real user trafic from our analytics):

Browser Versions
Google Chrome 28+
Safari 7+
Samsung Internet 1.1+
YaBrowser 15+
Android Webview 30+
Firefox 42+
UCBrowser 8+
Android Browser 4.0+
Opera 33+
Opera Mini 7+
Edge 12+

Note: You can find all recent stats in our analytics (INTERNAL)

Contributing

We welcome all issue reports and pull requests โค๏ธ If you'd like to contribute, please start withย this doc.

Caveats

  • Package "s3" has been forked to @brainly organization. One of dependencies of this package (graceful-fs) was causing our builds to fail. Since this package is no longer maintained, we decided to fork it and make needed updates. As a long-term solution, we need to switch "s3" package to something more up-to-date.

Codemods

We created a CLI tool that runs codemods with jscodeshift to batch refactor code. Usage:

yarn sg-codemod [...options]

where options are:

  • --help - display help
  • --dry - dry run (no changes are made to files)
  • --glob - use glob pattern to match files
  • --jscodeshift - pass options directly to jscodeshift

Read more here.

More Repositories

1

html-sketchapp-style-guide

Brainly style guide โžก Sketch
JavaScript
99
star
2

ui-components

๐Ÿ’„ Library of UI components
HTML
83
star
3

terraform-provider-redshift

Terraform Redshift provider
Go
34
star
4

nodejs-onesky-utils

Node.js utils for working with OneSky translation service.
JavaScript
33
star
5

dreams

Design automation tools for figma
TypeScript
20
star
6

openvpn-auth-radius

OpenVPN plugin for RADIUS authentication and accounting
C
20
star
7

hive

Hive is a scalable Comet/PUSH application server written in Erlang that allows you to create or integrate various Comet services into your WebApps. It supports lotโ€™s of plugins and can easily communicate and seamlessly integrate into existing backends using HTTP or TCP!
Erlang
19
star
8

svg-animate

๐ŸŽฌCreates SVG morphing animation from a series of files.
JavaScript
17
star
9

jvalidator

JSON Schema validation library and schema builder
PHP
11
star
10

olowek

๐Ÿ“ Nginx auto configuration and service discovery for Marathon
Go
11
star
11

onesky-gradle-plugin

Gradle plugin for syncing Android projects strings files in OneSky service
Kotlin
10
star
12

inventory_tool

Ansible inventory management tool
Python
9
star
13

flood

Flood is a load simulator useful for automatic Comet/PUSH application stress-testing. It is asynchronous, event based and enables you to create JSON encoded test scenarios of arbitrary complexity involving tens of thousands of simulated users, no Erlang required!
Erlang
7
star
14

action-autoupdate-branch

Github action for autoupdate branch based on custom label name.
TypeScript
4
star
15

rdb-cli

CLI tools to operate on Redis RDB dump
Go
4
star
16

pencil-pattern-generator

Pencil Random ๐Ÿ’ฉ Generator
JavaScript
3
star
17

html-react-primitives

JavaScript
3
star
18

frontend-tools-configs

๐Ÿ”ง Collection of settings for frontend tools used in Brainly
JavaScript
3
star
19

check-growth

Resource usage growth monitoring plugin
Python
3
star
20

mattes-migrate

Docerized mattes/migrate tool
Shell
2
star
21

datacontest

๐Ÿ“ˆ Brainly data contest app.
JavaScript
2
star
22

apache2_examplehost

Ansible role demonstrating apache2_base usage.
PHP
1
star
23

workshop-js-dom-apis

JavaScript & DOM: fetching and displaying data from API
1
star
24

ansible-modules

A collection of Ansible modules created and used at Brainly
Python
1
star
25

apache2_base

Ansible base role for apache2 http server.
1
star