Youtap Tech Indonesia
Breadcrumbs

Buttons - Base

Version history

Version

Date

Comment

Current Version (v. 1)

Oct 03, 2023 01:35

@Unknown user

Introduction

Buttons are used to signal the user the next possible action for them and help them get guided through processes and apps.

The following is an overview of the different button types we are using, when to use what style and what is customisable.

All of the button types included on this page are the following:


01. Primary CTA

Different states

Active State
Variant A - Text


Screenshot 2023-04-11 at 4.22.12 PM.png

button-large-active-A

Specifications

Colour button - primary

Text colour - tertiary-white

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 327px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.44.13 PM.png

button-small-active-a

Specifications

Colour button - primary

Colour text - tertiary-white

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 75px

Height - 56px

Corner radius - see


Variant B - Icon + Text
Screenshot 2023-04-11 at 4.34.47 PM.png

button-large-active-B

Specifications

Colour button - primary

Colour text - tertiary-white

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 327px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.47.42 PM.png

button-small-active-B

Specifications

Colour button - primary

Colour text - tertiary-white

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 107px

Height - 56px

Corner radius - see


Variant C - Icon
Screenshot 2023-04-11 at 4.42.09 PM.png

button-large-active-C

Specifications

Colour button - primary

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 327px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.49.05 PM.png

button-small-active-C

Specifications

Colour button - primary

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 72px

Height - 56px

Corner radius - see

Inactive State
Variant A - Text


Screenshot 2023-04-11 at 4.22.24 PM.png

button-large-inactive-A

Specifications

Colour button - tertiary-black-40

Colour text - tertiary-black-80

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 327px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.44.22 PM.png

button-small-inactive-A

Specifications

Colour button - tertiary-black-40

Colour text - tertiary-black-80

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 75px

Height - 56px

Corner radius - see


Variant B - Icon + Text
Screenshot 2023-04-11 at 4.34.57 PM.png

button-large-inactive-B

Specifications

Colour button - tertiary-black-40

Colour text - tertiary-black-80

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 75px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.47.56 PM.png

button-small-inactive-B

Specifications

Colour button - tertiary-black-40

Colour text - tertiary-black-80

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 107px

Height - 56px

Corner radius - see


Variant C - Icon
Screenshot 2023-04-11 at 4.42.20 PM.png

button-large-inactive-C

Specifications

Colour button - tertiary-black-40

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 327px

Height - 56px

Corner radius - see

Screenshot 2023-04-11 at 4.49.13 PM.png

button-small-inactive-C

Specifications

Colour button - tertiary-black-40

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 72px

Height - 56px

Corner radius - see


Usage of Primary CTA

When to use
Overall

The primary CTA is the most important button on a webpage or screen is used to execute the main action. This button should stand out and be easily identifiable by the user.

Avoid using multiple Primary CTAs on one screen. Having more than one main CTA reduces the impact, and makes it harder for users to know what to do next.


Button Size

Use a different size depending on the screen size and the space that is needed. Usually use it when:

  • a primary and a secondary action need to sit next to each other


Inactive State

Use the inactive state when certain requirements are not yet fulfilled by the user and they need these to move forward.


Icon + Text State (Variant B)

Use an additional icon with the text when it adds further information or to make it more playful. However, the icon needs to be clearly related to the action and understood as the same action described by the text. description.


Icon Only State (Variant C)

Use the Variant C - Icon ONLY when the icon is clearly and universally identifiable as an action by the user.

When NOT to use

Do not use a Primary CTA for an action that goes against the goal of the screen, e.g.

  • Cancel

  • ‘Sign in’ next to ‘Join now’ (one needs to be primary, the other secondary)


02. Ghost CTA

Different states

Active State
Variant A - Text
Screenshot 2023-04-11 at 4.58.51 PM.png

button2-large-active-A

Specifications

Colour button - tertiary-white

Colour text - primary

Outline colour - primary

Outline weight - inside, 2px

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 327px

Height - 56px

Corner radius - see Corner Radius

Screenshot 2023-04-11 at 5.21.28 PM.png

button2-small-active-A

Specifications

Colour button - tertiary-white

Colour text - primary

Outline colour - primary

Outline weight - inside, 2px

Text alignment - centre

Text limit - XX characters

Text size - display2

Length - 72px

Height - 56px

Corner radius - see Corner Radius

Flutter
Dart
Container(
    width: 151.50,
    height: 56,
    child: Row(
        mainAxisSize: MainAxisSize.min,
        mainAxisAlignment: MainAxisAlignment.center,
        crossAxisAlignment: CrossAxisAlignment.center,
        children:[
            Container(
                width: 151.50,
                height: 56,
                decoration: BoxDecoration(
                    borderRadius: BorderRadius.circular(12),
                    border: Border.all(color: Color(0xff000f55), width: 2, ),
                    color: Color(0xfffcfcfc),
                ),
                padding: const EdgeInsets.only(left: 62, right: 63, ),
                child: Row(
                    mainAxisSize: MainAxisSize.min,
                    mainAxisAlignment: MainAxisAlignment.center,
                    crossAxisAlignment: CrossAxisAlignment.center,
                    children:[
                        Text(
                            "CTA",
                            textAlign: TextAlign.center,
                            style: TextStyle(
                                color: Color(0xff000f55),
                                fontSize: 16,
                                fontFamily: "R-Flex",
                                fontWeight: FontWeight.w500,
                            ),
                        ),
                    ],
                ),
            ),
        ],
    ),
)

Variant B - Icon + Text
Screenshot 2023-04-11 at 5.21.03 PM.png

button2-large-active-B

Specifications

Colour button - tertiary-white

Colour text - primary

Outline colour - primary

Outline weight - inside, 2px

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 327px

Height - 56px

Corner radius - see Corner Radius

Screenshot 2023-04-11 at 5.21.34 PM.png

button2-small-active-B

Specifications

Colour button - tertiary-white

Colour text - primary

Outline colour - primary

Outline weight - inside, 2px

Text alignment - centre

Text limit - XX characters

Text size - display2

Icon size - 24x24px

Icon text space - see Spacing

Length - 107px

Height - 56px

Corner radius - see Corner Radius


Variant C - Icon
Screenshot 2023-04-11 at 5.21.13 PM.png

button2-large-active-C

Specifications

Colour button - tertiary-white

Outline colour - primary

Outline weight - inside, 2px

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 327px

Height - 56px

Corner radius - see Corner Radius

Screenshot 2023-04-11 at 5.21.23 PM.png

button2-small-active-C

Specifications

Colour button - tertiary-white

Outline colour - primary

Outline weight - inside, 2px

Colour icon - see Icons

Icon alignment - centre

Icon size - 24x24px

Length - 72px

Height - 56px

Corner radius - see Corner Radius


Usage of Ghost CTA

When to use

Only use when:

  • there is a primary action already

  • OR the action is secondary to what information needs to be perceived on the screen.


Button Size

Use a different size depending on the screen size and the space that is needed. Usually use it when:

  • a primary and a secondary action need to sit next to each other


Inactive State

Use the inactive state when certain requirements are not yet fulfilled by the user and they need these to move forward.


Icon + Text State (Variant B)

Use an additional icon with the text when it adds further information or to make it more playful. However, the icon needs to be clearly related to the action and understood as the same action described by the text. description.


Icon Only State (Variant C)

Use the Variant C - Icon ONLY when the icon is clearly and universally identifiable as an action by the user.

When NOT to use

Do not use this button when the action needs to be primary or is the goal of the page.


  • Follow same text style as the text the link is embedded in

  • Open up a modal with (usually) a webview of the content it describes

  • text colour - secondary 1

Example

Screenshot 2023-04-18 at 4.06.21 PM.png


When to use

Only use when:

  • The information it links to is not important for the user to complete a task

  • The information sits outside of the app within a webview

When NOT to use

Do not use this style when the action needs to be primary or is the goal of the page.

Do not use this for actions that N


04. Customisation options

Client can customise the following:

  • Colour scheme, incl. primary and secondary colour

  • Label text

Client cannot customise the following:

  • Size

  • Iconography (ONLY for customised app, not white label)

  • Font (ONLY for customised app, not white label)


05. Accessibility

The standard for accessibility should always be WCAG2.0 - AA compliance for colour contrast and readability of the text.


06. Resources